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

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: Sanitize report endpoints from IPC against actual CSP contents. 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 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) { }
« no previous file with comments | « third_party/WebKit/public/web/WebContentSecurityPolicy.h ('k') | third_party/WebKit/public/web/WebRemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698