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

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

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from dcheng@. 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
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebRemoteFrame.h
diff --git a/third_party/WebKit/public/web/WebRemoteFrame.h b/third_party/WebKit/public/web/WebRemoteFrame.h
index 65638c47a4b76f8f98574757bfd2c8faab8b8348..6e476d4e483d1d572308b12776db27588e0910cc 100644
--- a/third_party/WebKit/public/web/WebRemoteFrame.h
+++ b/third_party/WebKit/public/web/WebRemoteFrame.h
@@ -5,6 +5,7 @@
#ifndef WebRemoteFrame_h
#define WebRemoteFrame_h
+#include "public/web/WebContentSecurityPolicy.h"
#include "public/web/WebFrame.h"
#include "public/web/WebSandboxFlags.h"
@@ -13,6 +14,7 @@ namespace blink {
enum class WebTreeScopeType;
class WebFrameClient;
class WebRemoteFrameClient;
+class WebString;
class WebRemoteFrame : public WebFrame {
public:
@@ -39,6 +41,12 @@ public:
// Set frame |name| and |uniqueName| replicated from another process.
virtual void setReplicatedName(const WebString& name, const WebString& uniqueName) const = 0;
+ // Adds |header| to the set of replicated CSP headers.
+ virtual void addReplicatedContentSecurityPolicyHeader(const WebString& headerValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) const = 0;
+
+ // Resets replicated CSP headers to an empty set.
+ virtual void resetReplicatedContentSecurityPolicy() const = 0;
+
// Set frame enforcement of strict mixed content checking replicated from another process.
virtual void setReplicatedShouldEnforceStrictMixedContentChecking(bool) const = 0;
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698