Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Unified Diff: third_party/WebKit/Source/core/workers/WorkerScriptLoader.h

Issue 2086143006: Implement Referrer-Policy header for workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shared worker path Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
index eae83c0e523583d6a28039edd59ca0439add254d..f84ebdf1bf27ba2865a10e98325286e4933fac19 100644
--- a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
+++ b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
@@ -82,6 +82,8 @@ public:
ContentSecurityPolicy* contentSecurityPolicy() { return m_contentSecurityPolicy.get(); }
ContentSecurityPolicy* releaseContentSecurityPolicy() { return m_contentSecurityPolicy.release(); }
+ String referrerPolicy() { return m_referrerPolicy; }
+
WebAddressSpace responseAddressSpace() const { return m_responseAddressSpace; }
const Vector<String>* originTrialTokens() const { return m_originTrialTokens.get(); }
@@ -127,6 +129,7 @@ private:
Persistent<ContentSecurityPolicy> m_contentSecurityPolicy;
WebAddressSpace m_responseAddressSpace;
std::unique_ptr<Vector<String>> m_originTrialTokens;
+ String m_referrerPolicy;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698