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

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: Fold VibrationService into VibrationMessageFilter. 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #include "content/browser/renderer_host/render_view_host_delegate.h" 85 #include "content/browser/renderer_host/render_view_host_delegate.h"
86 #include "content/browser/renderer_host/render_view_host_impl.h" 86 #include "content/browser/renderer_host/render_view_host_impl.h"
87 #include "content/browser/renderer_host/render_widget_helper.h" 87 #include "content/browser/renderer_host/render_widget_helper.h"
88 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 88 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
89 #include "content/browser/renderer_host/text_input_client_message_filter.h" 89 #include "content/browser/renderer_host/text_input_client_message_filter.h"
90 #include "content/browser/resolve_proxy_msg_helper.h" 90 #include "content/browser/resolve_proxy_msg_helper.h"
91 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" 91 #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
92 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 92 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
93 #include "content/browser/storage_partition_impl.h" 93 #include "content/browser/storage_partition_impl.h"
94 #include "content/browser/tracing/trace_message_filter.h" 94 #include "content/browser/tracing/trace_message_filter.h"
95 #include "content/browser/vibration/vibration_message_filter.h"
95 #include "content/browser/webui/web_ui_controller_factory_registry.h" 96 #include "content/browser/webui/web_ui_controller_factory_registry.h"
96 #include "content/browser/worker_host/worker_message_filter.h" 97 #include "content/browser/worker_host/worker_message_filter.h"
97 #include "content/browser/worker_host/worker_storage_partition.h" 98 #include "content/browser/worker_host/worker_storage_partition.h"
98 #include "content/common/child_process_host_impl.h" 99 #include "content/common/child_process_host_impl.h"
99 #include "content/common/child_process_messages.h" 100 #include "content/common/child_process_messages.h"
100 #include "content/common/gpu/gpu_messages.h" 101 #include "content/common/gpu/gpu_messages.h"
101 #include "content/common/resource_messages.h" 102 #include "content/common/resource_messages.h"
102 #include "content/common/view_messages.h" 103 #include "content/common/view_messages.h"
103 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" 104 #include "content/port/browser/render_widget_host_view_frame_subscriber.h"
104 #include "content/public/browser/browser_context.h" 105 #include "content/public/browser/browser_context.h"
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 GetContentClient()->browser()->CreateQuotaPermissionContext())); 702 GetContentClient()->browser()->CreateQuotaPermissionContext()));
702 channel_->AddFilter(new GamepadBrowserMessageFilter()); 703 channel_->AddFilter(new GamepadBrowserMessageFilter());
703 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 704 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
704 channel_->AddFilter(new HistogramMessageFilter()); 705 channel_->AddFilter(new HistogramMessageFilter());
705 channel_->AddFilter(new HyphenatorMessageFilter(this)); 706 channel_->AddFilter(new HyphenatorMessageFilter(this));
706 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 707 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
707 if (CommandLine::ForCurrentProcess()->HasSwitch( 708 if (CommandLine::ForCurrentProcess()->HasSwitch(
708 switches::kEnableMemoryBenchmarking)) 709 switches::kEnableMemoryBenchmarking))
709 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); 710 channel_->AddFilter(new MemoryBenchmarkMessageFilter());
710 #endif 711 #endif
712 channel_->AddFilter(new VibrationMessageFilter());
711 } 713 }
712 714
713 int RenderProcessHostImpl::GetNextRoutingID() { 715 int RenderProcessHostImpl::GetNextRoutingID() {
714 return widget_helper_->GetNextRoutingID(); 716 return widget_helper_->GetNextRoutingID();
715 } 717 }
716 718
717 719
718 void RenderProcessHostImpl::ResumeDeferredNavigation( 720 void RenderProcessHostImpl::ResumeDeferredNavigation(
719 const GlobalRequestID& request_id) { 721 const GlobalRequestID& request_id) {
720 widget_helper_->ResumeDeferredNavigation(request_id); 722 widget_helper_->ResumeDeferredNavigation(request_id);
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 // Skip widgets in other processes. 1778 // Skip widgets in other processes.
1777 if (widgets[i]->GetProcess()->GetID() != GetID()) 1779 if (widgets[i]->GetProcess()->GetID() != GetID())
1778 continue; 1780 continue;
1779 1781
1780 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1782 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1781 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1783 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1782 } 1784 }
1783 } 1785 }
1784 1786
1785 } // namespace content 1787 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698