| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #include "content/browser/renderer_host/render_view_host_delegate.h" | 84 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 85 #include "content/browser/renderer_host/render_view_host_impl.h" | 85 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 86 #include "content/browser/renderer_host/render_widget_helper.h" | 86 #include "content/browser/renderer_host/render_widget_helper.h" |
| 87 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 87 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
| 88 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 88 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
| 89 #include "content/browser/resolve_proxy_msg_helper.h" | 89 #include "content/browser/resolve_proxy_msg_helper.h" |
| 90 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | 90 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" |
| 91 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 91 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
| 92 #include "content/browser/storage_partition_impl.h" | 92 #include "content/browser/storage_partition_impl.h" |
| 93 #include "content/browser/tracing/trace_message_filter.h" | 93 #include "content/browser/tracing/trace_message_filter.h" |
| 94 #include "content/browser/vibration/vibration_message_filter.h" |
| 94 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 95 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 95 #include "content/browser/worker_host/worker_message_filter.h" | 96 #include "content/browser/worker_host/worker_message_filter.h" |
| 96 #include "content/browser/worker_host/worker_storage_partition.h" | 97 #include "content/browser/worker_host/worker_storage_partition.h" |
| 97 #include "content/common/child_process_host_impl.h" | 98 #include "content/common/child_process_host_impl.h" |
| 98 #include "content/common/child_process_messages.h" | 99 #include "content/common/child_process_messages.h" |
| 99 #include "content/common/gpu/gpu_messages.h" | 100 #include "content/common/gpu/gpu_messages.h" |
| 100 #include "content/common/resource_messages.h" | 101 #include "content/common/resource_messages.h" |
| 101 #include "content/common/view_messages.h" | 102 #include "content/common/view_messages.h" |
| 102 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | 103 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" |
| 103 #include "content/public/browser/browser_context.h" | 104 #include "content/public/browser/browser_context.h" |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 693 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 693 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 694 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
| 694 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 695 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 695 channel_->AddFilter(new HistogramMessageFilter()); | 696 channel_->AddFilter(new HistogramMessageFilter()); |
| 696 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 697 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
| 697 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 698 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 698 if (CommandLine::ForCurrentProcess()->HasSwitch( | 699 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 699 switches::kEnableMemoryBenchmarking)) | 700 switches::kEnableMemoryBenchmarking)) |
| 700 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); | 701 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); |
| 701 #endif | 702 #endif |
| 703 channel_->AddFilter(new VibrationMessageFilter()); |
| 702 } | 704 } |
| 703 | 705 |
| 704 int RenderProcessHostImpl::GetNextRoutingID() { | 706 int RenderProcessHostImpl::GetNextRoutingID() { |
| 705 return widget_helper_->GetNextRoutingID(); | 707 return widget_helper_->GetNextRoutingID(); |
| 706 } | 708 } |
| 707 | 709 |
| 708 void RenderProcessHostImpl::ResumeDeferredNavigation( | 710 void RenderProcessHostImpl::ResumeDeferredNavigation( |
| 709 const GlobalRequestID& request_id) { | 711 const GlobalRequestID& request_id) { |
| 710 widget_helper_->ResumeDeferredNavigation(request_id); | 712 widget_helper_->ResumeDeferredNavigation(request_id); |
| 711 } | 713 } |
| (...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 continue; | 1779 continue; |
| 1778 | 1780 |
| 1779 RenderViewHost* rvh = | 1781 RenderViewHost* rvh = |
| 1780 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); | 1782 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); |
| 1781 | 1783 |
| 1782 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1784 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1783 } | 1785 } |
| 1784 } | 1786 } |
| 1785 | 1787 |
| 1786 } // namespace content | 1788 } // namespace content |
| OLD | NEW |