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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1312643002: Plumb opener information when creating RenderFrames and RenderFrameProxies for subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@opener-CreateOpenerProxiesIfNeeded
Patch Set: Add NewFrameProxy plumbing and test Created 5 years, 4 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_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 8aa80c2345d7081ab399ac6dd87285a88719566b..8104531e47defdd244641d94bec5bbc51657129f 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -600,7 +600,8 @@ gfx::NativeViewAccessible
bool RenderFrameHostImpl::CreateRenderFrame(int parent_routing_id,
int previous_sibling_routing_id,
- int proxy_routing_id) {
+ int proxy_routing_id,
+ int opener_routing_id) {
Charlie Reis 2015/08/28 23:27:38 nit: The ordering here and below is a bit confusin
alexmos 2015/08/31 23:54:28 Done.
TRACE_EVENT0("navigation", "RenderFrameHostImpl::CreateRenderFrame");
DCHECK(!IsRenderFrameLive()) << "Creating frame twice";
@@ -618,6 +619,7 @@ bool RenderFrameHostImpl::CreateRenderFrame(int parent_routing_id,
params.parent_routing_id = parent_routing_id;
params.proxy_routing_id = proxy_routing_id;
params.previous_sibling_routing_id = previous_sibling_routing_id;
+ params.opener_routing_id = opener_routing_id;
Charlie Reis 2015/08/28 23:27:38 Maybe it should go: routing_id, proxy, opener, par
alexmos 2015/08/31 23:54:28 Done. I changed it to follow your suggested order
Charlie Reis 2015/09/01 22:04:26 I suppose it could also go: routing_id, proxy, par
alexmos 2015/09/01 23:51:02 Good reasoning -- I agree both orders make sense.
params.replication_state = frame_tree_node()->current_replication_state();
if (render_widget_host_) {

Powered by Google App Engine
This is Rietveld 408576698