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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); | 984 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); |
985 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 985 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
986 AddFilter(new HistogramMessageFilter()); | 986 AddFilter(new HistogramMessageFilter()); |
987 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 987 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
988 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) | 988 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) |
989 AddFilter(new MemoryBenchmarkMessageFilter()); | 989 AddFilter(new MemoryBenchmarkMessageFilter()); |
990 #endif | 990 #endif |
991 AddFilter(new MemoryMessageFilter()); | 991 AddFilter(new MemoryMessageFilter()); |
992 AddFilter(new PushMessagingMessageFilter( | 992 AddFilter(new PushMessagingMessageFilter( |
993 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 993 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
994 #if defined(OS_ANDROID) | 994 // TODO(mfomitchev): Screen Orientation APIs on Aura - crbug.com/546719. |
| 995 #if defined(OS_ANDROID) && !defined(USE_AURA) |
995 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 996 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
996 #endif | 997 #endif |
997 AddFilter(new GeofencingDispatcherHost( | 998 AddFilter(new GeofencingDispatcherHost( |
998 storage_partition_impl_->GetGeofencingManager())); | 999 storage_partition_impl_->GetGeofencingManager())); |
999 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { | 1000 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { |
1000 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); | 1001 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
1001 AddFilter(bluetooth_dispatcher_host_.get()); | 1002 AddFilter(bluetooth_dispatcher_host_.get()); |
1002 } | 1003 } |
1003 } | 1004 } |
1004 | 1005 |
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2634 void RenderProcessHostImpl::GetAudioOutputControllers( | 2635 void RenderProcessHostImpl::GetAudioOutputControllers( |
2635 const GetAudioOutputControllersCallback& callback) const { | 2636 const GetAudioOutputControllersCallback& callback) const { |
2636 audio_renderer_host()->GetOutputControllers(callback); | 2637 audio_renderer_host()->GetOutputControllers(callback); |
2637 } | 2638 } |
2638 | 2639 |
2639 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2640 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2640 return bluetooth_dispatcher_host_.get(); | 2641 return bluetooth_dispatcher_host_.get(); |
2641 } | 2642 } |
2642 | 2643 |
2643 } // namespace content | 2644 } // namespace content |
OLD | NEW |