summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/public/WebFrame.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/public/WebFrame.h')
-rw-r--r--Source/WebKit/chromium/public/WebFrame.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/public/WebFrame.h b/Source/WebKit/chromium/public/WebFrame.h
index d1ea38969..6007252df 100644
--- a/Source/WebKit/chromium/public/WebFrame.h
+++ b/Source/WebKit/chromium/public/WebFrame.h
@@ -252,6 +252,16 @@ public:
virtual void setIsolatedWorldSecurityOrigin(
int worldID, const WebSecurityOrigin&) = 0;
+ // Associates a content security policy with an isolated world. This policy
+ // should be used when evaluating script in the isolated world, and should
+ // also replace a protected resource's CSP when evaluating resources
+ // injected into the DOM.
+ //
+ // FIXME: Setting this simply bypasses the protected resource's CSP. It
+ // doesn't yet restrict the isolated world to the provided policy.
+ virtual void setIsolatedWorldContentSecurityPolicy(
+ int worldID, const WebString&) = 0;
+
// Logs to the console associated with this frame.
virtual void addMessageToConsole(const WebConsoleMessage&) = 0;