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

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

Issue 2784753003: CSP: Enable whitelisting of external JavaScript via hashes (Closed)
Patch Set: remove duplicate test Created 3 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: 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 53ae94b360d112654b5bb874487d52a4a32bf299..4166240a86081d9285297153661d635aa0d43660 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
@@ -78,6 +78,7 @@ class CORE_EXPORT CSPDirectiveList
bool allowScriptFromSource(const KURL&,
const String& nonce,
+ const IntegrityMetadataSet& hashes,
ParserDisposition,
ResourceRequest::RedirectStatus,
SecurityViolationReportingPolicy) const;
@@ -241,6 +242,8 @@ class CORE_EXPORT CSPDirectiveList
bool checkEval(SourceListDirective*) const;
bool checkDynamic(SourceListDirective*) const;
bool isMatchingNoncePresent(SourceListDirective*, const String&) const;
+ bool areAllMatchingHashesPresent(SourceListDirective*,
+ const IntegrityMetadataSet&) const;
bool checkHash(SourceListDirective*, const CSPHashValue&) const;
bool checkHashedAttributes(SourceListDirective*) const;
bool checkSource(SourceListDirective*,

Powered by Google App Engine
This is Rietveld 408576698