Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2190183002: Forward CSP violation reporting from RenderFrameProxy to RenderFrameImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove no longer applicable TODO and early exit from reportViolation method. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) { }

Powered by Google App Engine
This is Rietveld 408576698