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

Unified Diff: content/browser/frame_host/render_frame_host_manager.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
Index: content/browser/frame_host/render_frame_host_manager.h
diff --git a/content/browser/frame_host/render_frame_host_manager.h b/content/browser/frame_host/render_frame_host_manager.h
index ee6e16ef0aaa9b05feb52d50f2d0a060a5f348c1..76af31cc2ea8a9c6f8c828f4ee9c2450ef360834 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -48,6 +48,7 @@ class RenderWidgetHostView;
class TestWebContents;
class WebUIImpl;
struct CommonNavigationParams;
+struct ContentSecurityPolicyHeader;
struct FrameReplicationState;
// Manages RenderFrameHosts for a FrameTreeNode. It maintains a
@@ -433,6 +434,12 @@ class CONTENT_EXPORT RenderFrameHostManager
// frame proxies.
void OnDidUpdateName(const std::string& name, const std::string& unique_name);
+ // Sends the newly added Content Security Policy header to all the proxies.
+ void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
+
+ // Resets Content Security Policy in all the proxies.
+ void OnDidResetContentSecurityPolicy();
+
// Sends updated enforcement of strict mixed content checking to all
// frame proxies when the frame changes its setting.
void OnEnforceStrictMixedContentChecking(bool should_enforce);
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698