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

Unified Diff: Source/core/frame/ContentSecurityPolicy.h

Issue 26481005: Implementation of script hashes for CSP. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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/ContentSecurityPolicy.h
diff --git a/Source/core/frame/ContentSecurityPolicy.h b/Source/core/frame/ContentSecurityPolicy.h
index 927d8532c99f13ba35368860272d0a835995e651..cb59857788d6d6a8134ffc9f17d10dde84ed783e 100644
--- a/Source/core/frame/ContentSecurityPolicy.h
+++ b/Source/core/frame/ContentSecurityPolicy.h
@@ -102,6 +102,8 @@ public:
bool allowBaseURI(const KURL&, ReportingStatus = SendReport) const;
bool allowScriptNonce(const String& nonce) const;
bool allowStyleNonce(const String& nonce) const;
+ bool allowScriptHash(const String& source) const;
+ bool allowStyleHash(const String& hash) const;
Mike West 2013/10/16 14:53:02 source vs hash? I haven't looked at the implementa
jww 2013/10/16 21:49:21 Done.
ReflectedXSSDisposition reflectedXSSDisposition() const;
@@ -115,6 +117,7 @@ public:
void reportInvalidDirectiveValueCharacter(const String& directiveName, const String& value) const;
void reportInvalidPathCharacter(const String& directiveName, const String& value, const char) const;
void reportInvalidNonce(const String&) const;
+ void reportInvalidHash(const String&) const;
void reportInvalidPluginTypes(const String&) const;
void reportInvalidSandboxFlags(const String&) const;
void reportInvalidSourceExpression(const String& directiveName, const String& source) const;

Powered by Google App Engine
This is Rietveld 408576698