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

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

Issue 2657623005: WIP: Give developers an opt-in mechanism to block some parser-inserted scripts.
Patch Set: Refactor. Created 3 years, 11 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 7dba69f3398462354117a0d391c704f04d508ad2..4bb7982698fa117dfb4491a02c84dae66e255d46 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
@@ -126,6 +126,7 @@ class CORE_EXPORT CSPDirectiveList
bool allowStyleHash(const CSPHashValue&,
ContentSecurityPolicy::InlineType) const;
bool allowDynamic() const;
+ bool allowParserInsertedFromScript() const;
bool allowRequestWithoutIntegrity(
WebURLRequest::RequestContext,
@@ -224,6 +225,7 @@ class CORE_EXPORT CSPDirectiveList
bool checkEval(SourceListDirective*) const;
bool checkDynamic(SourceListDirective*) const;
+ bool checkParserInsertedFromScript(SourceListDirective*) const;
bool isMatchingNoncePresent(SourceListDirective*, const String&) const;
bool checkHash(SourceListDirective*, const CSPHashValue&) const;
bool checkHashedAttributes(SourceListDirective*) const;

Powered by Google App Engine
This is Rietveld 408576698