Index: content/browser/frame_host/render_frame_host_manager.cc |
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc |
index 2b8794e052f62f6ae570f704ad6d84722e3bf149..36b1c96753930953146801fa6ee18bb316dc297e 100644 |
--- a/content/browser/frame_host/render_frame_host_manager.cc |
+++ b/content/browser/frame_host/render_frame_host_manager.cc |
@@ -935,6 +935,27 @@ void RenderFrameHostManager::OnDidUpdateName(const std::string& name, |
} |
} |
+void RenderFrameHostManager::OnDidAddContentSecurityPolicy( |
+ const ContentSecurityPolicyHeader& header) { |
+ if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |
+ return; |
+ |
+ for (const auto& pair : proxy_hosts_) { |
+ pair.second->Send(new FrameMsg_AddContentSecurityPolicy( |
+ pair.second->GetRoutingID(), header)); |
+ } |
+} |
+ |
+void RenderFrameHostManager::OnDidResetContentSecurityPolicy() { |
+ if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |
+ return; |
+ |
+ for (const auto& pair : proxy_hosts_) { |
+ pair.second->Send( |
+ new FrameMsg_ResetContentSecurityPolicy(pair.second->GetRoutingID())); |
+ } |
+} |
+ |
void RenderFrameHostManager::OnEnforceStrictMixedContentChecking( |
bool should_enforce) { |
if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |