Chromium Code Reviews| 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 3b619f154c6fca9d60b09d3a99f30145ba36c663..a94c85e450ead03879d5862f9236011eeb94bdf1 100644 |
| --- a/content/browser/frame_host/render_frame_host_impl.cc |
| +++ b/content/browser/frame_host/render_frame_host_impl.cc |
| @@ -545,6 +545,7 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { |
| IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeName, OnDidChangeName) |
| IPC_MESSAGE_HANDLER(FrameHostMsg_EnforceStrictMixedContentChecking, |
| OnEnforceStrictMixedContentChecking) |
| + IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateOrigin, OnUpdateOrigin) |
| IPC_MESSAGE_HANDLER(FrameHostMsg_DidAssignPageId, OnDidAssignPageId) |
| IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeSandboxFlags, |
| OnDidChangeSandboxFlags) |
| @@ -1475,6 +1476,13 @@ void RenderFrameHostImpl::OnEnforceStrictMixedContentChecking() { |
| frame_tree_node()->SetEnforceStrictMixedContentChecking(true); |
| } |
| +void RenderFrameHostImpl::OnUpdateOrigin( |
| + const url::Origin& origin, |
| + bool is_potentially_trustworthy_unique_origin) { |
| + frame_tree_node()->SetCurrentOrigin(origin, |
|
alexmos
2016/03/14 22:20:36
I know this is temporary until we fix issue 594645
estark
2016/03/15 01:04:41
Oh, I wasn't aware that we were already validating
|
| + is_potentially_trustworthy_unique_origin); |
| +} |
| + |
| void RenderFrameHostImpl::OnDidAssignPageId(int32_t page_id) { |
| // Update the RVH's current page ID so that future IPCs from the renderer |
| // correspond to the new page. |