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

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

Issue 1109633002: Basic experimental suborigin CSP directive and SecurityOrigin mods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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: Source/core/frame/csp/CSPDirectiveList.h
diff --git a/Source/core/frame/csp/CSPDirectiveList.h b/Source/core/frame/csp/CSPDirectiveList.h
index 716b904e3c6087a1fec145251cf2991051fc69c9..8a88f748750ea5d8e54f4852e2ee0372c3ec80ad 100644
--- a/Source/core/frame/csp/CSPDirectiveList.h
+++ b/Source/core/frame/csp/CSPDirectiveList.h
@@ -86,8 +86,10 @@ private:
void parsePluginTypes(const String& name, const String& value);
void parseReflectedXSS(const String& name, const String& value);
void parseReferrer(const String& name, const String& value);
+ String parseSuboriginName(const String& policy);
void addDirective(const String& name, const String& value);
void applySandboxPolicy(const String& name, const String& sandboxPolicy);
+ void applySuboriginPolicy(const String& name, const String& suboriginPolicy);
void enforceStrictMixedContentChecking(const String& name, const String& value);
void enableInsecureRequestsUpgrade(const String& name, const String& value);
@@ -127,7 +129,8 @@ private:
ContentSecurityPolicyHeaderSource m_headerSource;
bool m_reportOnly;
- bool m_haveSandboxPolicy;
+ bool m_hasSandboxPolicy;
+ bool m_hasSuboriginPolicy;
ReflectedXSSDisposition m_reflectedXSSDisposition;
bool m_didSetReferrerPolicy;

Powered by Google App Engine
This is Rietveld 408576698