OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 | 1197 |
1198 void RenderProcessHostImpl::ResumeDeferredNavigation( | 1198 void RenderProcessHostImpl::ResumeDeferredNavigation( |
1199 const GlobalRequestID& request_id) { | 1199 const GlobalRequestID& request_id) { |
1200 widget_helper_->ResumeDeferredNavigation(request_id); | 1200 widget_helper_->ResumeDeferredNavigation(request_id); |
1201 } | 1201 } |
1202 | 1202 |
1203 void RenderProcessHostImpl::NotifyTimezoneChange(const std::string& zone_id) { | 1203 void RenderProcessHostImpl::NotifyTimezoneChange(const std::string& zone_id) { |
1204 Send(new ViewMsg_TimezoneChange(zone_id)); | 1204 Send(new ViewMsg_TimezoneChange(zone_id)); |
1205 } | 1205 } |
1206 | 1206 |
1207 shell::InterfaceRegistry* RenderProcessHostImpl::GetInterfaceRegistry() { | |
1208 return mojo_child_connection_->GetInterfaceRegistry(); | |
1209 } | |
1210 | |
1211 shell::InterfaceProvider* RenderProcessHostImpl::GetRemoteInterfaces() { | 1207 shell::InterfaceProvider* RenderProcessHostImpl::GetRemoteInterfaces() { |
1212 return mojo_child_connection_->GetRemoteInterfaces(); | 1208 return mojo_child_connection_->GetRemoteInterfaces(); |
1213 } | 1209 } |
1214 | 1210 |
1215 std::unique_ptr<base::SharedPersistentMemoryAllocator> | 1211 std::unique_ptr<base::SharedPersistentMemoryAllocator> |
1216 RenderProcessHostImpl::TakeMetricsAllocator() { | 1212 RenderProcessHostImpl::TakeMetricsAllocator() { |
1217 return std::move(metrics_allocator_); | 1213 return std::move(metrics_allocator_); |
1218 } | 1214 } |
1219 | 1215 |
1220 const base::TimeTicks& RenderProcessHostImpl::GetInitTimeForNavigationMetrics() | 1216 const base::TimeTicks& RenderProcessHostImpl::GetInitTimeForNavigationMetrics() |
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2836 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2832 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2837 | 2833 |
2838 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2834 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2839 // enough information here so that we can determine what the bad message was. | 2835 // enough information here so that we can determine what the bad message was. |
2840 base::debug::Alias(&error); | 2836 base::debug::Alias(&error); |
2841 bad_message::ReceivedBadMessage(process.get(), | 2837 bad_message::ReceivedBadMessage(process.get(), |
2842 bad_message::RPH_MOJO_PROCESS_ERROR); | 2838 bad_message::RPH_MOJO_PROCESS_ERROR); |
2843 } | 2839 } |
2844 | 2840 |
2845 } // namespace content | 2841 } // namespace content |
OLD | NEW |