| 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; }
|
|
|
|
|