Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 23496051: Make VibrationMessageFilter available to other platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated by review comments Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 #include "content/browser/renderer_host/websocket_dispatcher_host.h" 96 #include "content/browser/renderer_host/websocket_dispatcher_host.h"
97 #include "content/browser/resolve_proxy_msg_helper.h" 97 #include "content/browser/resolve_proxy_msg_helper.h"
98 #include "content/browser/service_worker/service_worker_context_wrapper.h" 98 #include "content/browser/service_worker/service_worker_context_wrapper.h"
99 #include "content/browser/service_worker/service_worker_dispatcher_host.h" 99 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
100 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" 100 #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
101 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 101 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
102 #include "content/browser/storage_partition_impl.h" 102 #include "content/browser/storage_partition_impl.h"
103 #include "content/browser/streams/stream_context.h" 103 #include "content/browser/streams/stream_context.h"
104 #include "content/browser/tracing/trace_controller_impl.h" 104 #include "content/browser/tracing/trace_controller_impl.h"
105 #include "content/browser/tracing/trace_message_filter.h" 105 #include "content/browser/tracing/trace_message_filter.h"
106 #include "content/browser/vibration/vibration_message_filter.h"
106 #include "content/browser/webui/web_ui_controller_factory_registry.h" 107 #include "content/browser/webui/web_ui_controller_factory_registry.h"
107 #include "content/browser/worker_host/worker_message_filter.h" 108 #include "content/browser/worker_host/worker_message_filter.h"
108 #include "content/browser/worker_host/worker_storage_partition.h" 109 #include "content/browser/worker_host/worker_storage_partition.h"
109 #include "content/common/child_process_host_impl.h" 110 #include "content/common/child_process_host_impl.h"
110 #include "content/common/child_process_messages.h" 111 #include "content/common/child_process_messages.h"
111 #include "content/common/gpu/gpu_messages.h" 112 #include "content/common/gpu/gpu_messages.h"
112 #include "content/common/resource_messages.h" 113 #include "content/common/resource_messages.h"
113 #include "content/common/view_messages.h" 114 #include "content/common/view_messages.h"
114 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" 115 #include "content/port/browser/render_widget_host_view_frame_subscriber.h"
115 #include "content/public/browser/browser_context.h" 116 #include "content/public/browser/browser_context.h"
(...skipping 18 matching lines...) Expand all
134 #include "media/base/media_switches.h" 135 #include "media/base/media_switches.h"
135 #include "net/url_request/url_request_context_getter.h" 136 #include "net/url_request/url_request_context_getter.h"
136 #include "ppapi/shared_impl/ppapi_switches.h" 137 #include "ppapi/shared_impl/ppapi_switches.h"
137 #include "ui/base/ui_base_switches.h" 138 #include "ui/base/ui_base_switches.h"
138 #include "ui/events/event_switches.h" 139 #include "ui/events/event_switches.h"
139 #include "ui/gfx/switches.h" 140 #include "ui/gfx/switches.h"
140 #include "ui/gl/gl_switches.h" 141 #include "ui/gl/gl_switches.h"
141 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" 142 #include "webkit/browser/fileapi/sandbox_file_system_backend.h"
142 #include "webkit/common/resource_type.h" 143 #include "webkit/common/resource_type.h"
143 144
144 #if defined(OS_ANDROID)
145 #include "content/browser/android/vibration_message_filter.h"
146 #endif
147
148 #if defined(OS_WIN) 145 #if defined(OS_WIN)
149 #include "base/win/scoped_com_initializer.h" 146 #include "base/win/scoped_com_initializer.h"
150 #include "content/common/font_cache_dispatcher_win.h" 147 #include "content/common/font_cache_dispatcher_win.h"
151 #include "content/common/sandbox_win.h" 148 #include "content/common/sandbox_win.h"
152 #include "content/public/common/sandboxed_process_launcher_delegate.h" 149 #include "content/public/common/sandboxed_process_launcher_delegate.h"
153 #endif 150 #endif
154 151
155 #if defined(ENABLE_WEBRTC) 152 #if defined(ENABLE_WEBRTC)
156 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" 153 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h"
157 #endif 154 #endif
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 AddFilter(new GamepadBrowserMessageFilter()); 718 AddFilter(new GamepadBrowserMessageFilter());
722 AddFilter(new DeviceMotionMessageFilter()); 719 AddFilter(new DeviceMotionMessageFilter());
723 AddFilter(new DeviceOrientationMessageFilter()); 720 AddFilter(new DeviceOrientationMessageFilter());
724 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 721 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
725 AddFilter(new HistogramMessageFilter()); 722 AddFilter(new HistogramMessageFilter());
726 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 723 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
727 if (CommandLine::ForCurrentProcess()->HasSwitch( 724 if (CommandLine::ForCurrentProcess()->HasSwitch(
728 switches::kEnableMemoryBenchmarking)) 725 switches::kEnableMemoryBenchmarking))
729 AddFilter(new MemoryBenchmarkMessageFilter()); 726 AddFilter(new MemoryBenchmarkMessageFilter());
730 #endif 727 #endif
731 #if defined(OS_ANDROID)
732 AddFilter(new VibrationMessageFilter()); 728 AddFilter(new VibrationMessageFilter());
733 #endif
734 } 729 }
735 730
736 int RenderProcessHostImpl::GetNextRoutingID() { 731 int RenderProcessHostImpl::GetNextRoutingID() {
737 return widget_helper_->GetNextRoutingID(); 732 return widget_helper_->GetNextRoutingID();
738 } 733 }
739 734
740 735
741 void RenderProcessHostImpl::ResumeDeferredNavigation( 736 void RenderProcessHostImpl::ResumeDeferredNavigation(
742 const GlobalRequestID& request_id) { 737 const GlobalRequestID& request_id) {
743 widget_helper_->ResumeDeferredNavigation(request_id); 738 widget_helper_->ResumeDeferredNavigation(request_id);
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 // Skip widgets in other processes. 1839 // Skip widgets in other processes.
1845 if (widget->GetProcess()->GetID() != GetID()) 1840 if (widget->GetProcess()->GetID() != GetID())
1846 continue; 1841 continue;
1847 1842
1848 RenderViewHost* rvh = RenderViewHost::From(widget); 1843 RenderViewHost* rvh = RenderViewHost::From(widget);
1849 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1844 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1850 } 1845 }
1851 } 1846 }
1852 1847
1853 } // namespace content 1848 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698