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

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

Issue 1009583003: Add CSP header for resources with an active policy (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: test tweaks Created 5 years, 9 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/ContentSecurityPolicy.h
diff --git a/Source/core/frame/csp/ContentSecurityPolicy.h b/Source/core/frame/csp/ContentSecurityPolicy.h
index a1fdc3af5f93cf4398e84bafc6a94561994e8447..4729f544bf501da25366421b6bb08771e1035dea 100644
--- a/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -222,6 +222,13 @@ public:
bool experimentalFeaturesEnabled() const;
+ bool hasScriptPolicy() const;
+ bool hasStylePolicy() const;
+ bool hasImagePolicy() const;
+ bool hasFontPolicy() const;
+ bool hasMediaPolicy() const;
+ bool hasPluginPolicy() const;
+
static bool shouldBypassMainWorld(const ExecutionContext*);
static bool isDirectiveName(const String&);

Powered by Google App Engine
This is Rietveld 408576698