| 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 // 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 87 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
| 88 #include "content/browser/renderer_host/render_message_filter.h" | 88 #include "content/browser/renderer_host/render_message_filter.h" |
| 89 #include "content/browser/renderer_host/render_view_host_delegate.h" | 89 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 90 #include "content/browser/renderer_host/render_view_host_impl.h" | 90 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 91 #include "content/browser/renderer_host/render_widget_helper.h" | 91 #include "content/browser/renderer_host/render_widget_helper.h" |
| 92 #include "content/browser/renderer_host/render_widget_host_impl.h" | 92 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 93 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 93 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
| 94 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 94 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
| 95 #include "content/browser/renderer_host/websocket_dispatcher_host.h" | 95 #include "content/browser/renderer_host/websocket_dispatcher_host.h" |
| 96 #include "content/browser/resolve_proxy_msg_helper.h" | 96 #include "content/browser/resolve_proxy_msg_helper.h" |
| 97 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host.
h" |
| 97 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 98 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
| 98 #include "content/browser/service_worker/service_worker_dispatcher_host.h" | 99 #include "content/browser/service_worker/service_worker_dispatcher_host.h" |
| 99 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | 100 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" |
| 100 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 101 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
| 101 #include "content/browser/storage_partition_impl.h" | 102 #include "content/browser/storage_partition_impl.h" |
| 102 #include "content/browser/streams/stream_context.h" | 103 #include "content/browser/streams/stream_context.h" |
| 103 #include "content/browser/tracing/trace_message_filter.h" | 104 #include "content/browser/tracing/trace_message_filter.h" |
| 104 #include "content/browser/vibration/vibration_message_filter.h" | 105 #include "content/browser/vibration/vibration_message_filter.h" |
| 105 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 106 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 106 #include "content/browser/worker_host/worker_message_filter.h" | 107 #include "content/browser/worker_host/worker_message_filter.h" |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 AddFilter(new DeviceMotionMessageFilter()); | 778 AddFilter(new DeviceMotionMessageFilter()); |
| 778 AddFilter(new DeviceOrientationMessageFilter()); | 779 AddFilter(new DeviceOrientationMessageFilter()); |
| 779 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 780 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 780 AddFilter(new HistogramMessageFilter()); | 781 AddFilter(new HistogramMessageFilter()); |
| 781 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 782 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 782 if (CommandLine::ForCurrentProcess()->HasSwitch( | 783 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 783 switches::kEnableMemoryBenchmarking)) | 784 switches::kEnableMemoryBenchmarking)) |
| 784 AddFilter(new MemoryBenchmarkMessageFilter()); | 785 AddFilter(new MemoryBenchmarkMessageFilter()); |
| 785 #endif | 786 #endif |
| 786 AddFilter(new VibrationMessageFilter()); | 787 AddFilter(new VibrationMessageFilter()); |
| 788 AddFilter(new ScreenOrientationDispatcherHost()); |
| 787 } | 789 } |
| 788 | 790 |
| 789 int RenderProcessHostImpl::GetNextRoutingID() { | 791 int RenderProcessHostImpl::GetNextRoutingID() { |
| 790 return widget_helper_->GetNextRoutingID(); | 792 return widget_helper_->GetNextRoutingID(); |
| 791 } | 793 } |
| 792 | 794 |
| 793 | 795 |
| 794 void RenderProcessHostImpl::ResumeDeferredNavigation( | 796 void RenderProcessHostImpl::ResumeDeferredNavigation( |
| 795 const GlobalRequestID& request_id) { | 797 const GlobalRequestID& request_id) { |
| 796 widget_helper_->ResumeDeferredNavigation(request_id); | 798 widget_helper_->ResumeDeferredNavigation(request_id); |
| (...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2037 return; | 2039 return; |
| 2038 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); | 2040 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); |
| 2039 } | 2041 } |
| 2040 | 2042 |
| 2041 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { | 2043 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { |
| 2042 Send(new MediaStreamMsg_DisableAecDump()); | 2044 Send(new MediaStreamMsg_DisableAecDump()); |
| 2043 } | 2045 } |
| 2044 #endif | 2046 #endif |
| 2045 | 2047 |
| 2046 } // namespace content | 2048 } // namespace content |
| OLD | NEW |