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

Unified Diff: third_party/WebKit/Source/core/frame/RemoteFrameClient.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/Source/core/frame/RemoteFrameClient.h
diff --git a/third_party/WebKit/Source/core/frame/RemoteFrameClient.h b/third_party/WebKit/Source/core/frame/RemoteFrameClient.h
index 4c11f7829b14abe612ac2d07cd625bbecda74224..ed0c6de19aca2717652c78ef6f19e239991c2c26 100644
--- a/third_party/WebKit/Source/core/frame/RemoteFrameClient.h
+++ b/third_party/WebKit/Source/core/frame/RemoteFrameClient.h
@@ -7,13 +7,17 @@
#include "core/frame/FrameClient.h"
#include "core/frame/FrameTypes.h"
+#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/loader/FrameLoaderTypes.h"
#include "public/platform/WebFocusType.h"
+#include "wtf/Vector.h"
+#include "wtf/text/WTFString.h"
namespace blink {
class Event;
class IntRect;
+class KURL;
class ResourceRequest;
class RemoteFrameClient : public FrameClient {
@@ -36,6 +40,8 @@ public:
virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0;
virtual void visibilityChanged(bool visible) = 0;
+
+ virtual void forwardContentSecurityPolicyViolation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const KURL& blockedURL, const Vector<String>& reportEndpoints, const String& header, ContentSecurityPolicy::ViolationType, bool followedRedirect) = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/RemoteFrame.cpp ('k') | third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698