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

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

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 5 months 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
« no previous file with comments | « content/browser/android/vibration_message_filter.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 #include "ipc/ipc_switches.h" 126 #include "ipc/ipc_switches.h"
127 #include "media/base/media_switches.h" 127 #include "media/base/media_switches.h"
128 #include "net/url_request/url_request_context_getter.h" 128 #include "net/url_request/url_request_context_getter.h"
129 #include "ppapi/shared_impl/ppapi_switches.h" 129 #include "ppapi/shared_impl/ppapi_switches.h"
130 #include "ui/base/ui_base_switches.h" 130 #include "ui/base/ui_base_switches.h"
131 #include "ui/gl/gl_switches.h" 131 #include "ui/gl/gl_switches.h"
132 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" 132 #include "webkit/browser/fileapi/sandbox_file_system_backend.h"
133 #include "webkit/glue/resource_type.h" 133 #include "webkit/glue/resource_type.h"
134 #include "webkit/plugins/plugin_switches.h" 134 #include "webkit/plugins/plugin_switches.h"
135 135
136 #if defined(OS_ANDROID)
137 #include "content/browser/android/vibration_message_filter.h"
138 #endif
139
136 #if defined(OS_WIN) 140 #if defined(OS_WIN)
137 #include "base/win/scoped_com_initializer.h" 141 #include "base/win/scoped_com_initializer.h"
138 #include "content/common/font_cache_dispatcher_win.h" 142 #include "content/common/font_cache_dispatcher_win.h"
139 #include "content/common/sandbox_win.h" 143 #include "content/common/sandbox_win.h"
140 #include "content/public/common/sandboxed_process_launcher_delegate.h" 144 #include "content/public/common/sandboxed_process_launcher_delegate.h"
141 #endif 145 #endif
142 146
143 #if defined(ENABLE_WEBRTC) 147 #if defined(ENABLE_WEBRTC)
144 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" 148 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h"
145 #endif 149 #endif
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 channel_->AddFilter(new GamepadBrowserMessageFilter()); 718 channel_->AddFilter(new GamepadBrowserMessageFilter());
715 channel_->AddFilter(new DeviceMotionBrowserMessageFilter()); 719 channel_->AddFilter(new DeviceMotionBrowserMessageFilter());
716 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 720 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
717 channel_->AddFilter(new HistogramMessageFilter()); 721 channel_->AddFilter(new HistogramMessageFilter());
718 channel_->AddFilter(new HyphenatorMessageFilter(this)); 722 channel_->AddFilter(new HyphenatorMessageFilter(this));
719 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 723 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
720 if (CommandLine::ForCurrentProcess()->HasSwitch( 724 if (CommandLine::ForCurrentProcess()->HasSwitch(
721 switches::kEnableMemoryBenchmarking)) 725 switches::kEnableMemoryBenchmarking))
722 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); 726 channel_->AddFilter(new MemoryBenchmarkMessageFilter());
723 #endif 727 #endif
728 #if defined(OS_ANDROID)
729 channel_->AddFilter(new VibrationMessageFilter());
730 #endif
724 } 731 }
725 732
726 int RenderProcessHostImpl::GetNextRoutingID() { 733 int RenderProcessHostImpl::GetNextRoutingID() {
727 return widget_helper_->GetNextRoutingID(); 734 return widget_helper_->GetNextRoutingID();
728 } 735 }
729 736
730 737
731 void RenderProcessHostImpl::ResumeDeferredNavigation( 738 void RenderProcessHostImpl::ResumeDeferredNavigation(
732 const GlobalRequestID& request_id) { 739 const GlobalRequestID& request_id) {
733 widget_helper_->ResumeDeferredNavigation(request_id); 740 widget_helper_->ResumeDeferredNavigation(request_id);
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 // Skip widgets in other processes. 1800 // Skip widgets in other processes.
1794 if (widgets[i]->GetProcess()->GetID() != GetID()) 1801 if (widgets[i]->GetProcess()->GetID() != GetID())
1795 continue; 1802 continue;
1796 1803
1797 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1804 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1798 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1805 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1799 } 1806 }
1800 } 1807 }
1801 1808
1802 } // namespace content 1809 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/vibration_message_filter.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698