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

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

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Add the TODO and bug ids that was forgotten. Created 3 years, 10 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 1b690d6671ca25aa19555f148bae164aa5b55f14..b4b8a74a8b5c643fa364d43ab082f79f6f730e82 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -31,6 +31,7 @@
#ifndef WebFrameClient_h
#define WebFrameClient_h
+#include <v8.h>
#include "../platform/WebColor.h"
#include "WebAXObject.h"
#include "WebDOMMessageEvent.h"
@@ -49,6 +50,7 @@
#include "WebTextDirection.h"
#include "public/platform/BlameContext.h"
#include "public/platform/WebCommon.h"
+#include "public/platform/WebContentSecurityPolicyStruct.h"
#include "public/platform/WebEffectiveConnectionType.h"
#include "public/platform/WebFeaturePolicy.h"
#include "public/platform/WebFileSystem.h"
@@ -62,8 +64,6 @@
#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 {
@@ -234,9 +234,11 @@ class BLINK_EXPORT WebFrameClient {
// document. This can be triggered by handling of HTTP headers, handling
// of <meta> element, or by inheriting CSP from the parent (in case of
// about:blank).
- virtual void didAddContentSecurityPolicy(const WebString& headerValue,
- WebContentSecurityPolicyType,
- WebContentSecurityPolicySource) {}
+ virtual void didAddContentSecurityPolicy(
+ const WebString& headerValue,
+ WebContentSecurityPolicyType type,
+ WebContentSecurityPolicySource source,
+ const std::vector<WebContentSecurityPolicyPolicy>& policies) {}
// Some frame owner properties have changed for a child frame of this frame.
// Frame owner properties currently include: scrolling, marginwidth and
« no previous file with comments | « third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h ('k') | third_party/WebKit/public/web/WebRemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698