| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 AddFilter(new GamepadBrowserMessageFilter()); | 1042 AddFilter(new GamepadBrowserMessageFilter()); |
| 1043 AddFilter(new DeviceLightMessageFilter()); | 1043 AddFilter(new DeviceLightMessageFilter()); |
| 1044 AddFilter(new DeviceMotionMessageFilter()); | 1044 AddFilter(new DeviceMotionMessageFilter()); |
| 1045 AddFilter(new DeviceOrientationMessageFilter()); | 1045 AddFilter(new DeviceOrientationMessageFilter()); |
| 1046 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); | 1046 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); |
| 1047 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 1047 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 1048 AddFilter(new HistogramMessageFilter()); | 1048 AddFilter(new HistogramMessageFilter()); |
| 1049 AddFilter(new MemoryMessageFilter(this)); | 1049 AddFilter(new MemoryMessageFilter(this)); |
| 1050 AddFilter(new PushMessagingMessageFilter( | 1050 AddFilter(new PushMessagingMessageFilter( |
| 1051 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 1051 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 1052 #if defined(OS_ANDROID) && !defined(USE_AURA) | 1052 #if defined(OS_ANDROID) |
| 1053 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 1053 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 1054 #endif | 1054 #endif |
| 1055 AddFilter(new GeofencingDispatcherHost( | 1055 AddFilter(new GeofencingDispatcherHost( |
| 1056 storage_partition_impl_->GetGeofencingManager())); | 1056 storage_partition_impl_->GetGeofencingManager())); |
| 1057 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { | 1057 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { |
| 1058 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); | 1058 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
| 1059 AddFilter(bluetooth_dispatcher_host_.get()); | 1059 AddFilter(bluetooth_dispatcher_host_.get()); |
| 1060 } | 1060 } |
| 1061 } | 1061 } |
| 1062 | 1062 |
| (...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2788 void RenderProcessHostImpl::GetAudioOutputControllers( | 2788 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2789 const GetAudioOutputControllersCallback& callback) const { | 2789 const GetAudioOutputControllersCallback& callback) const { |
| 2790 audio_renderer_host()->GetOutputControllers(callback); | 2790 audio_renderer_host()->GetOutputControllers(callback); |
| 2791 } | 2791 } |
| 2792 | 2792 |
| 2793 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2793 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2794 return bluetooth_dispatcher_host_.get(); | 2794 return bluetooth_dispatcher_host_.get(); |
| 2795 } | 2795 } |
| 2796 | 2796 |
| 2797 } // namespace content | 2797 } // namespace content |
| OLD | NEW |