| OLD | NEW |
| 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 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 params->replication_state, compositor_deps, *params->widget_params, | 2067 params->replication_state, compositor_deps, *params->widget_params, |
| 2068 params->frame_owner_properties); | 2068 params->frame_owner_properties); |
| 2069 } | 2069 } |
| 2070 | 2070 |
| 2071 void RenderThreadImpl::CreateFrameProxy( | 2071 void RenderThreadImpl::CreateFrameProxy( |
| 2072 int32_t routing_id, | 2072 int32_t routing_id, |
| 2073 int32_t render_view_routing_id, | 2073 int32_t render_view_routing_id, |
| 2074 int32_t opener_routing_id, | 2074 int32_t opener_routing_id, |
| 2075 int32_t parent_routing_id, | 2075 int32_t parent_routing_id, |
| 2076 const FrameReplicationState& replicated_state) { | 2076 const FrameReplicationState& replicated_state) { |
| 2077 // Debug cases of https://crbug.com/575245. | |
| 2078 base::debug::SetCrashKeyValue("newproxy_proxy_id", | |
| 2079 base::IntToString(routing_id)); | |
| 2080 base::debug::SetCrashKeyValue("newproxy_view_id", | |
| 2081 base::IntToString(render_view_routing_id)); | |
| 2082 base::debug::SetCrashKeyValue("newproxy_opener_id", | |
| 2083 base::IntToString(opener_routing_id)); | |
| 2084 base::debug::SetCrashKeyValue("newproxy_parent_id", | |
| 2085 base::IntToString(parent_routing_id)); | |
| 2086 RenderFrameProxy::CreateFrameProxy( | 2077 RenderFrameProxy::CreateFrameProxy( |
| 2087 routing_id, render_view_routing_id, | 2078 routing_id, render_view_routing_id, |
| 2088 RenderFrameImpl::ResolveOpener(opener_routing_id), parent_routing_id, | 2079 RenderFrameImpl::ResolveOpener(opener_routing_id), parent_routing_id, |
| 2089 replicated_state); | 2080 replicated_state); |
| 2090 } | 2081 } |
| 2091 | 2082 |
| 2092 void RenderThreadImpl::OnNetworkConnectionChanged( | 2083 void RenderThreadImpl::OnNetworkConnectionChanged( |
| 2093 net::NetworkChangeNotifier::ConnectionType type, | 2084 net::NetworkChangeNotifier::ConnectionType type, |
| 2094 double max_bandwidth_mbps) { | 2085 double max_bandwidth_mbps) { |
| 2095 bool online = type != net::NetworkChangeNotifier::CONNECTION_NONE; | 2086 bool online = type != net::NetworkChangeNotifier::CONNECTION_NONE; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2412 } | 2403 } |
| 2413 } | 2404 } |
| 2414 | 2405 |
| 2415 void RenderThreadImpl::OnRendererInterfaceRequest( | 2406 void RenderThreadImpl::OnRendererInterfaceRequest( |
| 2416 mojom::RendererAssociatedRequest request) { | 2407 mojom::RendererAssociatedRequest request) { |
| 2417 DCHECK(!renderer_binding_.is_bound()); | 2408 DCHECK(!renderer_binding_.is_bound()); |
| 2418 renderer_binding_.Bind(std::move(request)); | 2409 renderer_binding_.Bind(std::move(request)); |
| 2419 } | 2410 } |
| 2420 | 2411 |
| 2421 } // namespace content | 2412 } // namespace content |
| OLD | NEW |