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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h

Issue 2445823002: Remove CSP referrer directive (Closed)
Patch Set: remove unused test file Created 4 years, 2 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/frame/csp/CSPDirectiveList.h
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
index 1aabcacaed1c4d11871fca711d72ba1fc0e26749..c4c9215457573392419c39ba57b174182b13de76 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
@@ -14,7 +14,6 @@
#include "platform/network/HTTPParsers.h"
#include "platform/network/ResourceRequest.h"
#include "platform/weborigin/KURL.h"
-#include "platform/weborigin/ReferrerPolicy.h"
#include "wtf/Vector.h"
#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
@@ -142,8 +141,6 @@ class CORE_EXPORT CSPDirectiveList
const String& evalDisabledErrorMessage() const {
return m_evalDisabledErrorMessage;
}
- ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; }
- bool didSetReferrerPolicy() const { return m_didSetReferrerPolicy; }
bool isReportOnly() const {
return m_headerType == ContentSecurityPolicyHeaderTypeReport;
}
@@ -178,7 +175,6 @@ class CORE_EXPORT CSPDirectiveList
void parseRequireSRIFor(const String& name, const String& value);
void parseReportURI(const String& name, const String& value);
void parsePluginTypes(const String& name, const String& value);
- void parseReferrer(const String& name, const String& value);
void addDirective(const String& name, const String& value);
void applySandboxPolicy(const String& name, const String& sandboxPolicy);
void enforceStrictMixedContentChecking(const String& name,
@@ -278,9 +274,6 @@ class CORE_EXPORT CSPDirectiveList
bool m_hasSandboxPolicy;
- bool m_didSetReferrerPolicy;
- ReferrerPolicy m_referrerPolicy;
-
bool m_strictMixedContentCheckingEnforced;
bool m_upgradeInsecureRequests;

Powered by Google App Engine
This is Rietveld 408576698