OLD | NEW |
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 #include "content/browser/renderer_host/media/video_capture_host.h" | 87 #include "content/browser/renderer_host/media/video_capture_host.h" |
88 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" | 88 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
89 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 89 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
90 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 90 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
91 #include "content/browser/renderer_host/render_message_filter.h" | 91 #include "content/browser/renderer_host/render_message_filter.h" |
92 #include "content/browser/renderer_host/render_view_host_delegate.h" | 92 #include "content/browser/renderer_host/render_view_host_delegate.h" |
93 #include "content/browser/renderer_host/render_view_host_impl.h" | 93 #include "content/browser/renderer_host/render_view_host_impl.h" |
94 #include "content/browser/renderer_host/render_widget_helper.h" | 94 #include "content/browser/renderer_host/render_widget_helper.h" |
95 #include "content/browser/renderer_host/render_widget_host_impl.h" | 95 #include "content/browser/renderer_host/render_widget_host_impl.h" |
96 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 96 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
| 97 #include "content/browser/renderer_host/vr_message_filter.h" |
97 #include "content/browser/renderer_host/websocket_dispatcher_host.h" | 98 #include "content/browser/renderer_host/websocket_dispatcher_host.h" |
98 #include "content/browser/resolve_proxy_msg_helper.h" | 99 #include "content/browser/resolve_proxy_msg_helper.h" |
99 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 100 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
100 #include "content/browser/service_worker/service_worker_dispatcher_host.h" | 101 #include "content/browser/service_worker/service_worker_dispatcher_host.h" |
101 #include "content/browser/shared_worker/shared_worker_message_filter.h" | 102 #include "content/browser/shared_worker/shared_worker_message_filter.h" |
102 #include "content/browser/shared_worker/worker_storage_partition.h" | 103 #include "content/browser/shared_worker/worker_storage_partition.h" |
103 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 104 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
104 #include "content/browser/storage_partition_impl.h" | 105 #include "content/browser/storage_partition_impl.h" |
105 #include "content/browser/streams/stream_context.h" | 106 #include "content/browser/streams/stream_context.h" |
106 #include "content/browser/tracing/trace_message_filter.h" | 107 #include "content/browser/tracing/trace_message_filter.h" |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 890 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
890 | 891 |
891 notification_message_filter_ = new NotificationMessageFilter( | 892 notification_message_filter_ = new NotificationMessageFilter( |
892 GetID(), | 893 GetID(), |
893 resource_context, | 894 resource_context, |
894 browser_context); | 895 browser_context); |
895 AddFilter(notification_message_filter_.get()); | 896 AddFilter(notification_message_filter_.get()); |
896 | 897 |
897 AddFilter(new GamepadBrowserMessageFilter()); | 898 AddFilter(new GamepadBrowserMessageFilter()); |
898 AddFilter(new DeviceLightMessageFilter()); | 899 AddFilter(new DeviceLightMessageFilter()); |
| 900 AddFilter(new VRMessageFilter()); |
899 AddFilter(new DeviceMotionMessageFilter()); | 901 AddFilter(new DeviceMotionMessageFilter()); |
900 AddFilter(new DeviceOrientationMessageFilter()); | 902 AddFilter(new DeviceOrientationMessageFilter()); |
901 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 903 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
902 AddFilter(new HistogramMessageFilter()); | 904 AddFilter(new HistogramMessageFilter()); |
903 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 905 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
904 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) | 906 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) |
905 AddFilter(new MemoryBenchmarkMessageFilter()); | 907 AddFilter(new MemoryBenchmarkMessageFilter()); |
906 #endif | 908 #endif |
907 AddFilter(new PushMessagingMessageFilter( | 909 AddFilter(new PushMessagingMessageFilter( |
908 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 910 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 switches::kEnableSlimmingPaint, | 1281 switches::kEnableSlimmingPaint, |
1280 switches::kEnableSmoothScrolling, | 1282 switches::kEnableSmoothScrolling, |
1281 switches::kEnableStatsTable, | 1283 switches::kEnableStatsTable, |
1282 switches::kEnableStrictSiteIsolation, | 1284 switches::kEnableStrictSiteIsolation, |
1283 switches::kEnableThreadedCompositing, | 1285 switches::kEnableThreadedCompositing, |
1284 switches::kEnableTouchDragDrop, | 1286 switches::kEnableTouchDragDrop, |
1285 switches::kEnableTouchEditing, | 1287 switches::kEnableTouchEditing, |
1286 switches::kEnableUnsafeES3APIs, | 1288 switches::kEnableUnsafeES3APIs, |
1287 switches::kEnableViewport, | 1289 switches::kEnableViewport, |
1288 switches::kEnableViewportMeta, | 1290 switches::kEnableViewportMeta, |
| 1291 switches::kEnableVR, |
1289 switches::kEnableVtune, | 1292 switches::kEnableVtune, |
1290 switches::kEnableWebGLDraftExtensions, | 1293 switches::kEnableWebGLDraftExtensions, |
1291 switches::kEnableWebGLImageChromium, | 1294 switches::kEnableWebGLImageChromium, |
1292 switches::kEnableWebMIDI, | 1295 switches::kEnableWebMIDI, |
1293 switches::kForceDeviceScaleFactor, | 1296 switches::kForceDeviceScaleFactor, |
1294 switches::kForceDisplayList2dCanvas, | 1297 switches::kForceDisplayList2dCanvas, |
1295 switches::kFullMemoryCrashReport, | 1298 switches::kFullMemoryCrashReport, |
1296 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 1299 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
1297 switches::kIPCConnectionTimeout, | 1300 switches::kIPCConnectionTimeout, |
1298 switches::kJavaScriptFlags, | 1301 switches::kJavaScriptFlags, |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2454 if (worker_ref_count_ == 0) | 2457 if (worker_ref_count_ == 0) |
2455 Cleanup(); | 2458 Cleanup(); |
2456 } | 2459 } |
2457 | 2460 |
2458 void RenderProcessHostImpl::GetAudioOutputControllers( | 2461 void RenderProcessHostImpl::GetAudioOutputControllers( |
2459 const GetAudioOutputControllersCallback& callback) const { | 2462 const GetAudioOutputControllersCallback& callback) const { |
2460 audio_renderer_host()->GetOutputControllers(callback); | 2463 audio_renderer_host()->GetOutputControllers(callback); |
2461 } | 2464 } |
2462 | 2465 |
2463 } // namespace content | 2466 } // namespace content |
OLD | NEW |