Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 9e15211fecddc2047ecbfd92bbe3600eccaa0524..c604cea306a42300b1826869f94f6717d9a04e2f 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -519,6 +519,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { |
OnDidAccessInitialDocument) |
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeOpener, OnDidChangeOpener) |
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeName, OnDidChangeName) |
+ IPC_MESSAGE_HANDLER(FrameHostMsg_DidAddContentSecurityPolicy, |
+ OnDidAddContentSecurityPolicy) |
IPC_MESSAGE_HANDLER(FrameHostMsg_EnforceStrictMixedContentChecking, |
OnEnforceStrictMixedContentChecking) |
IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateToUniqueOrigin, |
@@ -1505,6 +1507,11 @@ void RenderFrameHostImpl::OnDidChangeName(const std::string& name, |
delegate_->DidChangeName(this, name); |
} |
+void RenderFrameHostImpl::OnDidAddContentSecurityPolicy( |
+ const ContentSecurityPolicyHeader& header) { |
+ frame_tree_node()->AddContentSecurityPolicy(header); |
+} |
+ |
void RenderFrameHostImpl::OnEnforceStrictMixedContentChecking() { |
frame_tree_node()->SetEnforceStrictMixedContentChecking(true); |
} |