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" | |
95 #include "content/browser/vibration/vibration_service.h" | |
94 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 96 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
95 #include "content/browser/worker_host/worker_message_filter.h" | 97 #include "content/browser/worker_host/worker_message_filter.h" |
96 #include "content/browser/worker_host/worker_storage_partition.h" | 98 #include "content/browser/worker_host/worker_storage_partition.h" |
97 #include "content/common/child_process_host_impl.h" | 99 #include "content/common/child_process_host_impl.h" |
98 #include "content/common/child_process_messages.h" | 100 #include "content/common/child_process_messages.h" |
99 #include "content/common/gpu/gpu_messages.h" | 101 #include "content/common/gpu/gpu_messages.h" |
100 #include "content/common/resource_messages.h" | 102 #include "content/common/resource_messages.h" |
101 #include "content/common/view_messages.h" | 103 #include "content/common/view_messages.h" |
102 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | 104 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" |
103 #include "content/public/browser/browser_context.h" | 105 #include "content/public/browser/browser_context.h" |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
692 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 694 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
693 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 695 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
694 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 696 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
695 channel_->AddFilter(new HistogramMessageFilter()); | 697 channel_->AddFilter(new HistogramMessageFilter()); |
696 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 698 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
697 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 699 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
698 if (CommandLine::ForCurrentProcess()->HasSwitch( | 700 if (CommandLine::ForCurrentProcess()->HasSwitch( |
699 switches::kEnableMemoryBenchmarking)) | 701 switches::kEnableMemoryBenchmarking)) |
700 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); | 702 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); |
701 #endif | 703 #endif |
704 channel_->AddFilter(new VibrationMessageFilter(VibrationService::Create())); | |
bulach
2013/06/21 12:55:54
see below, I think it won't be too difficult to ju
Michael van Ouwerkerk
2013/06/21 15:07:41
Done.
| |
702 } | 705 } |
703 | 706 |
704 int RenderProcessHostImpl::GetNextRoutingID() { | 707 int RenderProcessHostImpl::GetNextRoutingID() { |
705 return widget_helper_->GetNextRoutingID(); | 708 return widget_helper_->GetNextRoutingID(); |
706 } | 709 } |
707 | 710 |
708 void RenderProcessHostImpl::ResumeDeferredNavigation( | 711 void RenderProcessHostImpl::ResumeDeferredNavigation( |
709 const GlobalRequestID& request_id) { | 712 const GlobalRequestID& request_id) { |
710 widget_helper_->ResumeDeferredNavigation(request_id); | 713 widget_helper_->ResumeDeferredNavigation(request_id); |
711 } | 714 } |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1777 continue; | 1780 continue; |
1778 | 1781 |
1779 RenderViewHost* rvh = | 1782 RenderViewHost* rvh = |
1780 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); | 1783 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); |
1781 | 1784 |
1782 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1785 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1783 } | 1786 } |
1784 } | 1787 } |
1785 | 1788 |
1786 } // namespace content | 1789 } // namespace content |
OLD | NEW |