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

Side by Side Diff: content/browser/frame_host/render_frame_proxy_host.cc

Issue 692973005: Pass origin information for remote frame creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failures for content:// URLs on Android Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/render_frame_proxy_host.h" 5 #include "content/browser/frame_host/render_frame_proxy_host.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "content/browser/frame_host/cross_process_frame_connector.h" 8 #include "content/browser/frame_host/cross_process_frame_connector.h"
9 #include "content/browser/frame_host/frame_tree.h" 9 #include "content/browser/frame_host/frame_tree.h"
10 #include "content/browser/frame_host/frame_tree_node.h" 10 #include "content/browser/frame_host/frame_tree_node.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 parent_routing_id = frame_tree_node_->parent() 135 parent_routing_id = frame_tree_node_->parent()
136 ->render_manager() 136 ->render_manager()
137 ->GetRoutingIdForSiteInstance(site_instance_.get()); 137 ->GetRoutingIdForSiteInstance(site_instance_.get());
138 CHECK_NE(parent_routing_id, MSG_ROUTING_NONE); 138 CHECK_NE(parent_routing_id, MSG_ROUTING_NONE);
139 } 139 }
140 140
141 Send(new FrameMsg_NewFrameProxy(routing_id_, 141 Send(new FrameMsg_NewFrameProxy(routing_id_,
142 parent_routing_id, 142 parent_routing_id,
143 frame_tree_node_->frame_tree() 143 frame_tree_node_->frame_tree()
144 ->GetRenderViewHost(site_instance_.get()) 144 ->GetRenderViewHost(site_instance_.get())
145 ->GetRoutingID())); 145 ->GetRoutingID(),
146 frame_tree_node_
147 ->current_replication_state()));
146 148
147 return true; 149 return true;
148 } 150 }
149 151
150 void RenderFrameProxyHost::DisownOpener() { 152 void RenderFrameProxyHost::DisownOpener() {
151 Send(new FrameMsg_DisownOpener(GetRoutingID())); 153 Send(new FrameMsg_DisownOpener(GetRoutingID()));
152 } 154 }
153 155
154 void RenderFrameProxyHost::OnOpenURL( 156 void RenderFrameProxyHost::OnOpenURL(
155 const FrameHostMsg_OpenURL_Params& params) { 157 const FrameHostMsg_OpenURL_Params& params) {
156 frame_tree_node_->current_frame_host()->OpenURL(params); 158 frame_tree_node_->current_frame_host()->OpenURL(params);
157 } 159 }
158 160
159 } // namespace content 161 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698