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

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: Rebased and added contact info for override APIs. 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 19 matching lines...) Expand all
135 #include "media/base/media_switches.h" 136 #include "media/base/media_switches.h"
136 #include "net/url_request/url_request_context_getter.h" 137 #include "net/url_request/url_request_context_getter.h"
137 #include "ppapi/shared_impl/ppapi_switches.h" 138 #include "ppapi/shared_impl/ppapi_switches.h"
138 #include "ui/base/ui_base_switches.h" 139 #include "ui/base/ui_base_switches.h"
139 #include "ui/events/event_switches.h" 140 #include "ui/events/event_switches.h"
140 #include "ui/gfx/switches.h" 141 #include "ui/gfx/switches.h"
141 #include "ui/gl/gl_switches.h" 142 #include "ui/gl/gl_switches.h"
142 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" 143 #include "webkit/browser/fileapi/sandbox_file_system_backend.h"
143 #include "webkit/common/resource_type.h" 144 #include "webkit/common/resource_type.h"
144 145
145 #if defined(OS_ANDROID)
146 #include "content/browser/android/vibration_message_filter.h"
147 #endif
148
149 #if defined(OS_WIN) 146 #if defined(OS_WIN)
150 #include "base/win/scoped_com_initializer.h" 147 #include "base/win/scoped_com_initializer.h"
151 #include "content/common/font_cache_dispatcher_win.h" 148 #include "content/common/font_cache_dispatcher_win.h"
152 #include "content/common/sandbox_win.h" 149 #include "content/common/sandbox_win.h"
153 #include "content/public/common/sandboxed_process_launcher_delegate.h" 150 #include "content/public/common/sandboxed_process_launcher_delegate.h"
154 #endif 151 #endif
155 152
156 #if defined(ENABLE_WEBRTC) 153 #if defined(ENABLE_WEBRTC)
157 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" 154 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h"
158 #endif 155 #endif
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 AddFilter(new GamepadBrowserMessageFilter()); 752 AddFilter(new GamepadBrowserMessageFilter());
756 AddFilter(new DeviceMotionMessageFilter()); 753 AddFilter(new DeviceMotionMessageFilter());
757 AddFilter(new DeviceOrientationMessageFilter()); 754 AddFilter(new DeviceOrientationMessageFilter());
758 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 755 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
759 AddFilter(new HistogramMessageFilter()); 756 AddFilter(new HistogramMessageFilter());
760 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 757 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
761 if (CommandLine::ForCurrentProcess()->HasSwitch( 758 if (CommandLine::ForCurrentProcess()->HasSwitch(
762 switches::kEnableMemoryBenchmarking)) 759 switches::kEnableMemoryBenchmarking))
763 AddFilter(new MemoryBenchmarkMessageFilter()); 760 AddFilter(new MemoryBenchmarkMessageFilter());
764 #endif 761 #endif
765 #if defined(OS_ANDROID)
766 AddFilter(new VibrationMessageFilter()); 762 AddFilter(new VibrationMessageFilter());
767 #endif
768 } 763 }
769 764
770 int RenderProcessHostImpl::GetNextRoutingID() { 765 int RenderProcessHostImpl::GetNextRoutingID() {
771 return widget_helper_->GetNextRoutingID(); 766 return widget_helper_->GetNextRoutingID();
772 } 767 }
773 768
774 769
775 void RenderProcessHostImpl::ResumeDeferredNavigation( 770 void RenderProcessHostImpl::ResumeDeferredNavigation(
776 const GlobalRequestID& request_id) { 771 const GlobalRequestID& request_id) {
777 widget_helper_->ResumeDeferredNavigation(request_id); 772 widget_helper_->ResumeDeferredNavigation(request_id);
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 // Skip widgets in other processes. 1889 // Skip widgets in other processes.
1895 if (widget->GetProcess()->GetID() != GetID()) 1890 if (widget->GetProcess()->GetID() != GetID())
1896 continue; 1891 continue;
1897 1892
1898 RenderViewHost* rvh = RenderViewHost::From(widget); 1893 RenderViewHost* rvh = RenderViewHost::From(widget);
1899 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1894 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1900 } 1895 }
1901 } 1896 }
1902 1897
1903 } // namespace content 1898 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/vibration_message_filter.cc ('k') | content/browser/vibration/vibration_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698