| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 #include "content/browser/tracing/trace_message_filter.h" | 114 #include "content/browser/tracing/trace_message_filter.h" |
| 115 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 115 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 116 #include "content/common/child_process_host_impl.h" | 116 #include "content/common/child_process_host_impl.h" |
| 117 #include "content/common/child_process_messages.h" | 117 #include "content/common/child_process_messages.h" |
| 118 #include "content/common/content_switches_internal.h" | 118 #include "content/common/content_switches_internal.h" |
| 119 #include "content/common/frame_messages.h" | 119 #include "content/common/frame_messages.h" |
| 120 #include "content/common/gpu/gpu_messages.h" | 120 #include "content/common/gpu/gpu_messages.h" |
| 121 #include "content/common/in_process_child_thread_params.h" | 121 #include "content/common/in_process_child_thread_params.h" |
| 122 #include "content/common/mojo/channel_init.h" | 122 #include "content/common/mojo/channel_init.h" |
| 123 #include "content/common/mojo/mojo_messages.h" | 123 #include "content/common/mojo/mojo_messages.h" |
| 124 #include "content/common/render_process_messages.h" |
| 124 #include "content/common/resource_messages.h" | 125 #include "content/common/resource_messages.h" |
| 125 #include "content/common/site_isolation_policy.h" | 126 #include "content/common/site_isolation_policy.h" |
| 126 #include "content/common/view_messages.h" | 127 #include "content/common/view_messages.h" |
| 127 #include "content/public/browser/browser_context.h" | 128 #include "content/public/browser/browser_context.h" |
| 128 #include "content/public/browser/content_browser_client.h" | 129 #include "content/public/browser/content_browser_client.h" |
| 129 #include "content/public/browser/navigator_connect_context.h" | 130 #include "content/public/browser/navigator_connect_context.h" |
| 130 #include "content/public/browser/notification_service.h" | 131 #include "content/public/browser/notification_service.h" |
| 131 #include "content/public/browser/notification_types.h" | 132 #include "content/public/browser/notification_types.h" |
| 132 #include "content/public/browser/render_process_host_factory.h" | 133 #include "content/public/browser/render_process_host_factory.h" |
| 133 #include "content/public/browser/render_process_host_observer.h" | 134 #include "content/public/browser/render_process_host_observer.h" |
| (...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1556 | 1557 |
| 1557 if (deleting_soon_ || fast_shutdown_started_) | 1558 if (deleting_soon_ || fast_shutdown_started_) |
| 1558 return false; | 1559 return false; |
| 1559 | 1560 |
| 1560 mark_child_process_activity_time(); | 1561 mark_child_process_activity_time(); |
| 1561 if (msg.routing_id() == MSG_ROUTING_CONTROL) { | 1562 if (msg.routing_id() == MSG_ROUTING_CONTROL) { |
| 1562 // Dispatch control messages. | 1563 // Dispatch control messages. |
| 1563 IPC_BEGIN_MESSAGE_MAP(RenderProcessHostImpl, msg) | 1564 IPC_BEGIN_MESSAGE_MAP(RenderProcessHostImpl, msg) |
| 1564 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ShutdownRequest, | 1565 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ShutdownRequest, |
| 1565 OnShutdownRequest) | 1566 OnShutdownRequest) |
| 1566 IPC_MESSAGE_HANDLER(ViewHostMsg_SuddenTerminationChanged, | 1567 IPC_MESSAGE_HANDLER(RenderProcessHostMsg_SuddenTerminationChanged, |
| 1567 SuddenTerminationChanged) | 1568 SuddenTerminationChanged) |
| 1568 IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction, | 1569 IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction, |
| 1569 OnUserMetricsRecordAction) | 1570 OnUserMetricsRecordAction) |
| 1570 IPC_MESSAGE_HANDLER(ViewHostMsg_SavedPageAsMHTML, OnSavedPageAsMHTML) | 1571 IPC_MESSAGE_HANDLER(ViewHostMsg_SavedPageAsMHTML, OnSavedPageAsMHTML) |
| 1571 IPC_MESSAGE_HANDLER(ViewHostMsg_Close_ACK, OnCloseACK) | 1572 IPC_MESSAGE_HANDLER(ViewHostMsg_Close_ACK, OnCloseACK) |
| 1572 #if defined(ENABLE_WEBRTC) | 1573 #if defined(ENABLE_WEBRTC) |
| 1573 IPC_MESSAGE_HANDLER(AecDumpMsg_RegisterAecDumpConsumer, | 1574 IPC_MESSAGE_HANDLER(AecDumpMsg_RegisterAecDumpConsumer, |
| 1574 OnRegisterAecDumpConsumer) | 1575 OnRegisterAecDumpConsumer) |
| 1575 IPC_MESSAGE_HANDLER(AecDumpMsg_UnregisterAecDumpConsumer, | 1576 IPC_MESSAGE_HANDLER(AecDumpMsg_UnregisterAecDumpConsumer, |
| 1576 OnUnregisterAecDumpConsumer) | 1577 OnUnregisterAecDumpConsumer) |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2577 void RenderProcessHostImpl::GetAudioOutputControllers( | 2578 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2578 const GetAudioOutputControllersCallback& callback) const { | 2579 const GetAudioOutputControllersCallback& callback) const { |
| 2579 audio_renderer_host()->GetOutputControllers(callback); | 2580 audio_renderer_host()->GetOutputControllers(callback); |
| 2580 } | 2581 } |
| 2581 | 2582 |
| 2582 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2583 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2583 return bluetooth_dispatcher_host_.get(); | 2584 return bluetooth_dispatcher_host_.get(); |
| 2584 } | 2585 } |
| 2585 | 2586 |
| 2586 } // namespace content | 2587 } // namespace content |
| OLD | NEW |