Index: third_party/WebKit/public/web/WebFrameClient.h |
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h |
index 58a80ba926f22dee7aa9b11a8c5e4957d4fa2b8c..9722b1927a74df6523b7929ff35bc7f557c0ac36 100644 |
--- a/third_party/WebKit/public/web/WebFrameClient.h |
+++ b/third_party/WebKit/public/web/WebFrameClient.h |
@@ -56,6 +56,7 @@ |
#include "public/platform/WebStorageQuotaType.h" |
#include "public/platform/WebURLError.h" |
#include "public/platform/WebURLRequest.h" |
+#include "public/web/WebContentSecurityPolicy.h" |
#include <v8.h> |
namespace blink { |
@@ -720,6 +721,12 @@ public: |
// Mojo ---------------------------------------------------------------- |
virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
+ // Called when a new Content Security Policy is added to the frame's |
+ // document. This can be trigered by handling of HTTP headers, handling |
alexmos
2016/05/12 22:37:25
nit: triggered still needs a "g" :)
Łukasz Anforowicz
2016/05/13 17:29:15
Done.
|
+ // of <meta> element, or by inheriting CSP from the parent (in case of |
+ // about:blank). |
+ virtual void didAddContentSecurityPolicy(const WebString& headerValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) { } |
+ |
protected: |
virtual ~WebFrameClient() { } |
}; |