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

Side by Side Diff: content/renderer/render_thread_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: Fix param ordering in RenderThreadImpl::OnCreateNewFrameProxy Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache) 1619 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache)
1620 #endif 1620 #endif
1621 IPC_MESSAGE_UNHANDLED(handled = false) 1621 IPC_MESSAGE_UNHANDLED(handled = false)
1622 IPC_END_MESSAGE_MAP() 1622 IPC_END_MESSAGE_MAP()
1623 return handled; 1623 return handled;
1624 } 1624 }
1625 1625
1626 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { 1626 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) {
1627 CompositorDependencies* compositor_deps = this; 1627 CompositorDependencies* compositor_deps = this;
1628 RenderFrameImpl::CreateFrame( 1628 RenderFrameImpl::CreateFrame(
1629 params.routing_id, params.parent_routing_id, 1629 params.routing_id, params.proxy_routing_id, params.opener_routing_id,
1630 params.previous_sibling_routing_id, params.proxy_routing_id, 1630 params.parent_routing_id, params.previous_sibling_routing_id,
1631 params.replication_state, compositor_deps, params.widget_params); 1631 params.replication_state, compositor_deps, params.widget_params);
1632 } 1632 }
1633 1633
1634 void RenderThreadImpl::OnCreateNewFrameProxy( 1634 void RenderThreadImpl::OnCreateNewFrameProxy(
1635 int routing_id, 1635 int routing_id,
1636 int render_view_routing_id,
1637 int opener_routing_id,
1636 int parent_routing_id, 1638 int parent_routing_id,
1637 int render_view_routing_id,
1638 const FrameReplicationState& replicated_state) { 1639 const FrameReplicationState& replicated_state) {
1639 RenderFrameProxy::CreateFrameProxy(routing_id, parent_routing_id, 1640 RenderFrameProxy::CreateFrameProxy(routing_id, render_view_routing_id,
1640 render_view_routing_id, replicated_state); 1641 opener_routing_id, parent_routing_id,
1642 replicated_state);
1641 } 1643 }
1642 1644
1643 void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const std::string& scheme, 1645 void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const std::string& scheme,
1644 const std::string& host, 1646 const std::string& host,
1645 double zoom_level) { 1647 double zoom_level) {
1646 RenderViewZoomer zoomer(scheme, host, zoom_level); 1648 RenderViewZoomer zoomer(scheme, host, zoom_level);
1647 RenderView::ForEach(&zoomer); 1649 RenderView::ForEach(&zoomer);
1648 } 1650 }
1649 1651
1650 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { 1652 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) {
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1955 } 1957 }
1956 1958
1957 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 1959 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
1958 size_t erased = 1960 size_t erased =
1959 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 1961 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
1960 routing_id_); 1962 routing_id_);
1961 DCHECK_EQ(1u, erased); 1963 DCHECK_EQ(1u, erased);
1962 } 1964 }
1963 1965
1964 } // namespace content 1966 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698