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

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

Issue 2528133002: Revert of Embedding-CSP: Refactoring directive strings into enum (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 51ab571882a0465373623897c3833e542941dbc1..b305e5b816001596b461bfa223679f74d6d976da 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
@@ -190,17 +190,17 @@
SourceListDirective* operativeDirective(SourceListDirective*,
SourceListDirective* override) const;
void reportViolation(const String& directiveText,
- const ContentSecurityPolicy::DirectiveType&,
+ const String& effectiveDirective,
const String& consoleMessage,
const KURL& blockedURL,
ResourceRequest::RedirectStatus) const;
void reportViolationWithFrame(const String& directiveText,
- const ContentSecurityPolicy::DirectiveType&,
+ const String& effectiveDirective,
const String& consoleMessage,
const KURL& blockedURL,
LocalFrame*) const;
void reportViolationWithLocation(const String& directiveText,
- const ContentSecurityPolicy::DirectiveType&,
+ const String& effectiveDirective,
const String& consoleMessage,
const KURL& blockedURL,
const String& contextURL,
@@ -208,7 +208,7 @@
Element*) const;
void reportViolationWithState(
const String& directiveText,
- const ContentSecurityPolicy::DirectiveType&,
+ const String& effectiveDirective,
const String& message,
const KURL& blockedURL,
ScriptState*,
@@ -247,11 +247,10 @@
bool isScript,
const String& hashValue) const;
- bool checkSourceAndReportViolation(
- SourceListDirective*,
- const KURL&,
- const ContentSecurityPolicy::DirectiveType&,
- ResourceRequest::RedirectStatus) const;
+ bool checkSourceAndReportViolation(SourceListDirective*,
+ const KURL&,
+ const String& effectiveDirective,
+ ResourceRequest::RedirectStatus) const;
bool checkMediaTypeAndReportViolation(MediaListDirective*,
const String& type,
const String& typeAttribute,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698