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 3d93c037f2a8aac9401164b42d73a4e200442ecd..2319965b759bb0b87dbd1f88ca29bce2727091eb 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 { |
@@ -426,6 +428,19 @@ public: |
// coordinates. |
virtual void saveImageAt(const WebPoint&) = 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) { } |