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

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

Issue 27073003: CSP Suborigins Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address abarth's comments Created 6 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: Source/core/frame/csp/CSPDirectiveList.h
diff --git a/Source/core/frame/csp/CSPDirectiveList.h b/Source/core/frame/csp/CSPDirectiveList.h
index f3f474a32aa74c455a1845c2761e20b5e08548f4..eac0a8b445b323d0c01b0ea7211cd3cdc1988c9d 100644
--- a/Source/core/frame/csp/CSPDirectiveList.h
+++ b/Source/core/frame/csp/CSPDirectiveList.h
@@ -74,6 +74,8 @@ private:
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 applySuboriginPolicy(const String& name, const String& suboriginPolicy);
+ String parseSuboriginName(const String& policy);
Mike West 2014/10/23 12:59:19 Nit: Move this up next to the other parse function
jww 2015/03/20 22:50:03 Done.
template <class CSPDirectiveType>
void setCSPDirective(const String& name, const String& value, OwnPtr<CSPDirectiveType>&);
@@ -112,6 +114,7 @@ private:
bool m_reportOnly;
bool m_haveSandboxPolicy;
+ bool m_haveSuboriginPolicy;
Mike West 2014/10/23 12:59:19 Nit: These both should be "hasXXX", not "haveXXX".
jww 2015/03/20 22:50:03 Done.
ReflectedXSSDisposition m_reflectedXSSDisposition;
bool m_didSetReferrerPolicy;

Powered by Google App Engine
This is Rietveld 408576698