Index: third_party/WebKit/public/web/WebLocalFrame.h |
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h |
index 25657a78eb60fe1f8b7b0974ab70a4a32751fe8e..14798c9f6923d65f555aaaa383a3b47b4e2e6998 100644 |
--- a/third_party/WebKit/public/web/WebLocalFrame.h |
+++ b/third_party/WebKit/public/web/WebLocalFrame.h |
@@ -10,6 +10,8 @@ |
#include "WebFrameLoadType.h" |
#include "WebHistoryItem.h" |
#include "public/platform/WebCachePolicy.h" |
+#include "public/platform/WebVector.h" |
+#include "public/web/WebContentSecurityPolicy.h" |
namespace blink { |
@@ -410,6 +412,19 @@ public: |
// This will be removed following the deprecation. |
virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; |
+ // Security --------------------------------------------------------------- |
+ |
+ // Report a Content Security Policy violation. |
+ virtual void reportContentSecurityPolicyViolation( |
+ const WebString& directiveText, |
+ const WebString& effectiveDirective, |
+ const WebString& consoleMessage, |
+ const WebURL& blockedURL, |
+ const WebVector<WebString>& reportEndpoints, |
+ const WebString& header, |
+ WebContentSecurityPolicyViolationType, |
+ bool followedRedirect) = 0; |
+ |
protected: |
explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |