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

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: Patch rebased after r231091 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.h" 98 #include "content/browser/service_worker/service_worker_context.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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 AddFilter(new GamepadBrowserMessageFilter()); 714 AddFilter(new GamepadBrowserMessageFilter());
718 AddFilter(new DeviceMotionMessageFilter()); 715 AddFilter(new DeviceMotionMessageFilter());
719 AddFilter(new DeviceOrientationMessageFilter()); 716 AddFilter(new DeviceOrientationMessageFilter());
720 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 717 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
721 AddFilter(new HistogramMessageFilter()); 718 AddFilter(new HistogramMessageFilter());
722 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 719 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
723 if (CommandLine::ForCurrentProcess()->HasSwitch( 720 if (CommandLine::ForCurrentProcess()->HasSwitch(
724 switches::kEnableMemoryBenchmarking)) 721 switches::kEnableMemoryBenchmarking))
725 AddFilter(new MemoryBenchmarkMessageFilter()); 722 AddFilter(new MemoryBenchmarkMessageFilter());
726 #endif 723 #endif
727 #if defined(OS_ANDROID) 724 AddFilter(VibrationMessageFilter::New());
728 AddFilter(new VibrationMessageFilter());
729 #endif
730 } 725 }
731 726
732 int RenderProcessHostImpl::GetNextRoutingID() { 727 int RenderProcessHostImpl::GetNextRoutingID() {
733 return widget_helper_->GetNextRoutingID(); 728 return widget_helper_->GetNextRoutingID();
734 } 729 }
735 730
736 731
737 void RenderProcessHostImpl::ResumeDeferredNavigation( 732 void RenderProcessHostImpl::ResumeDeferredNavigation(
738 const GlobalRequestID& request_id) { 733 const GlobalRequestID& request_id) {
739 widget_helper_->ResumeDeferredNavigation(request_id); 734 widget_helper_->ResumeDeferredNavigation(request_id);
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 // Skip widgets in other processes. 1829 // Skip widgets in other processes.
1835 if (widget->GetProcess()->GetID() != GetID()) 1830 if (widget->GetProcess()->GetID() != GetID())
1836 continue; 1831 continue;
1837 1832
1838 RenderViewHost* rvh = RenderViewHost::From(widget); 1833 RenderViewHost* rvh = RenderViewHost::From(widget);
1839 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1834 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1840 } 1835 }
1841 } 1836 }
1842 1837
1843 } // namespace content 1838 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698