From 9683da4470e6642f60ca5ec2586564f9a48f9f22 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 20 Sep 2022 10:47:24 +0200 Subject: [PATCH] LibWeb: Add referrer accessors to Fetch Request --- Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h index bdd10a63dc..52edd1688d 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h @@ -254,6 +254,9 @@ public: [[nodiscard]] u8 redirect_count() const { return m_redirect_count; } void set_redirect_count(u8 redirect_count) { m_redirect_count = redirect_count; } + [[nodiscard]] ReferrerType const& referrer() const { return m_referrer; } + void set_referrer(ReferrerType referrer) { m_referrer = move(referrer); } + [[nodiscard]] ResponseTainting response_tainting() const { return m_response_tainting; } void set_response_tainting(ResponseTainting response_tainting) { m_response_tainting = response_tainting; }