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 86d80b8040486dbf5de25d4fe56a063e3c0aabfc..708b849775024b759e45b3de8a1a5d8fe84f9a2a 100644 |
--- a/third_party/WebKit/public/web/WebFrameClient.h |
+++ b/third_party/WebKit/public/web/WebFrameClient.h |
@@ -57,6 +57,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 { |
@@ -198,6 +199,12 @@ public: |
// The sandbox flags have changed for a child frame of this frame. |
virtual void didChangeSandboxFlags(WebFrame* childFrame, WebSandboxFlags flags) { } |
+ // Called when a new Content Security Policy is added to the frame's |
+ // document. This can be triggered by handling of HTTP headers, handling |
+ // of <meta> element, or by inheriting CSP from the parent (in case of |
+ // about:blank). |
+ virtual void didAddContentSecurityPolicy(const WebString& headerValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) { } |
+ |
// Some frame owner properties have changed for a child frame of this frame. |
// Frame owner properties currently include: scrolling, marginwidth and |
// marginheight. |