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 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 const GlobalRequestID& request_id) { | 1391 const GlobalRequestID& request_id) { |
1392 widget_helper_->ResumeDeferredNavigation(request_id); | 1392 widget_helper_->ResumeDeferredNavigation(request_id); |
1393 } | 1393 } |
1394 | 1394 |
1395 void RenderProcessHostImpl::BindInterface( | 1395 void RenderProcessHostImpl::BindInterface( |
1396 const std::string& interface_name, | 1396 const std::string& interface_name, |
1397 mojo::ScopedMessagePipeHandle interface_pipe) { | 1397 mojo::ScopedMessagePipeHandle interface_pipe) { |
1398 child_connection_->BindInterface(interface_name, std::move(interface_pipe)); | 1398 child_connection_->BindInterface(interface_name, std::move(interface_pipe)); |
1399 } | 1399 } |
1400 | 1400 |
| 1401 const service_manager::Identity& RenderProcessHostImpl::GetChildIdentity() |
| 1402 const { |
| 1403 return child_connection_->child_identity(); |
| 1404 } |
| 1405 |
1401 std::unique_ptr<base::SharedPersistentMemoryAllocator> | 1406 std::unique_ptr<base::SharedPersistentMemoryAllocator> |
1402 RenderProcessHostImpl::TakeMetricsAllocator() { | 1407 RenderProcessHostImpl::TakeMetricsAllocator() { |
1403 return std::move(metrics_allocator_); | 1408 return std::move(metrics_allocator_); |
1404 } | 1409 } |
1405 | 1410 |
1406 const base::TimeTicks& RenderProcessHostImpl::GetInitTimeForNavigationMetrics() | 1411 const base::TimeTicks& RenderProcessHostImpl::GetInitTimeForNavigationMetrics() |
1407 const { | 1412 const { |
1408 return init_time_; | 1413 return init_time_; |
1409 } | 1414 } |
1410 | 1415 |
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3077 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3082 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3078 | 3083 |
3079 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3084 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3080 // Capture the error message in a crash key value. | 3085 // Capture the error message in a crash key value. |
3081 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3086 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3082 bad_message::ReceivedBadMessage(render_process_id, | 3087 bad_message::ReceivedBadMessage(render_process_id, |
3083 bad_message::RPH_MOJO_PROCESS_ERROR); | 3088 bad_message::RPH_MOJO_PROCESS_ERROR); |
3084 } | 3089 } |
3085 | 3090 |
3086 } // namespace content | 3091 } // namespace content |
OLD | NEW |