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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 2499053003: Simplify RenderFrameImpl::ResolveOpener() (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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_frame_proxy.cc ('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 <utility> 10 #include <utility>
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after
2160 const FrameReplicationState& replicated_state) { 2160 const FrameReplicationState& replicated_state) {
2161 // Debug cases of https://crbug.com/575245. 2161 // Debug cases of https://crbug.com/575245.
2162 base::debug::SetCrashKeyValue("newproxy_proxy_id", 2162 base::debug::SetCrashKeyValue("newproxy_proxy_id",
2163 base::IntToString(routing_id)); 2163 base::IntToString(routing_id));
2164 base::debug::SetCrashKeyValue("newproxy_view_id", 2164 base::debug::SetCrashKeyValue("newproxy_view_id",
2165 base::IntToString(render_view_routing_id)); 2165 base::IntToString(render_view_routing_id));
2166 base::debug::SetCrashKeyValue("newproxy_opener_id", 2166 base::debug::SetCrashKeyValue("newproxy_opener_id",
2167 base::IntToString(opener_routing_id)); 2167 base::IntToString(opener_routing_id));
2168 base::debug::SetCrashKeyValue("newproxy_parent_id", 2168 base::debug::SetCrashKeyValue("newproxy_parent_id",
2169 base::IntToString(parent_routing_id)); 2169 base::IntToString(parent_routing_id));
2170 RenderFrameProxy::CreateFrameProxy(routing_id, render_view_routing_id, 2170 RenderFrameProxy::CreateFrameProxy(
2171 opener_routing_id, parent_routing_id, 2171 routing_id, render_view_routing_id,
2172 replicated_state); 2172 RenderFrameImpl::ResolveOpener(opener_routing_id), parent_routing_id,
2173 replicated_state);
2173 } 2174 }
2174 2175
2175 void RenderThreadImpl::OnNetworkConnectionChanged( 2176 void RenderThreadImpl::OnNetworkConnectionChanged(
2176 net::NetworkChangeNotifier::ConnectionType type, 2177 net::NetworkChangeNotifier::ConnectionType type,
2177 double max_bandwidth_mbps) { 2178 double max_bandwidth_mbps) {
2178 bool online = type != net::NetworkChangeNotifier::CONNECTION_NONE; 2179 bool online = type != net::NetworkChangeNotifier::CONNECTION_NONE;
2179 WebNetworkStateNotifier::setOnLine(online); 2180 WebNetworkStateNotifier::setOnLine(online);
2180 for (auto& observer : observers_) 2181 for (auto& observer : observers_)
2181 observer.NetworkStateChanged(online); 2182 observer.NetworkStateChanged(online);
2182 WebNetworkStateNotifier::setWebConnection( 2183 WebNetworkStateNotifier::setWebConnection(
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 } 2479 }
2479 } 2480 }
2480 2481
2481 void RenderThreadImpl::OnRendererInterfaceRequest( 2482 void RenderThreadImpl::OnRendererInterfaceRequest(
2482 mojom::RendererAssociatedRequest request) { 2483 mojom::RendererAssociatedRequest request) {
2483 DCHECK(!renderer_binding_.is_bound()); 2484 DCHECK(!renderer_binding_.is_bound());
2484 renderer_binding_.Bind(std::move(request)); 2485 renderer_binding_.Bind(std::move(request));
2485 } 2486 }
2486 2487
2487 } // namespace content 2488 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_proxy.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698