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

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 2075053003: Add basic Referrer-Policy support for Documents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test expectation for tweaked console message 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/dom/ExecutionContext.h
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.h b/third_party/WebKit/Source/core/dom/ExecutionContext.h
index 92d1d2cee9784f52754307836b2de871e1bd2549..fd901eb16a3bf93e84cbdf2326c8795beeac2270 100644
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.h
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.h
@@ -149,6 +149,11 @@ public:
virtual bool isSecureContext(const SecureContextCheck = StandardSecureContextCheck) const;
virtual String outgoingReferrer() const;
+ // Parses a comma-separated list of referrer policy tokens, and sets
+ // the context's referrer policy to the last one that is a valid
+ // policy. Logs a message to the console if none of the policy
+ // tokens are valid policies.
+ void parseAndSetReferrerPolicy(const String& policies);
void setReferrerPolicy(ReferrerPolicy);
ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; }
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentTest.cpp ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698