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

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

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/WebFrameClient.h
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h
index 58a80ba926f22dee7aa9b11a8c5e4957d4fa2b8c..3128bf71fac29c0156b53e685b9cb054724e5ff6 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -56,6 +56,7 @@
#include "public/platform/WebStorageQuotaType.h"
#include "public/platform/WebURLError.h"
#include "public/platform/WebURLRequest.h"
+#include "public/web/WebContentSecurityPolicy.h"
#include <v8.h>
namespace blink {
@@ -720,6 +721,12 @@ public:
// Mojo ----------------------------------------------------------------
virtual ServiceRegistry* serviceRegistry() { return nullptr; }
+ // Called when a new Content Security Policy is added to the frame's
+ // document. This can be trigerred by handling of HTTP headers, handling
Mike West 2016/05/11 06:21:04 Nit: s/trigerred/triggered/
Łukasz Anforowicz 2016/05/11 23:14:48 Done.
+ // of <meta> element, or by inheriting CSP from the parent (in case of
+ // about:blank).
+ virtual void didAddContentSecurityPolicy(const WebString& headerValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) { }
+
protected:
virtual ~WebFrameClient() { }
};

Powered by Google App Engine
This is Rietveld 408576698