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

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

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing feedback from sievers@, part 1 Created 5 years, 9 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 892
892 notification_message_filter_ = new NotificationMessageFilter( 893 notification_message_filter_ = new NotificationMessageFilter(
893 GetID(), 894 GetID(),
894 storage_partition_impl_->GetPlatformNotificationContext(), 895 storage_partition_impl_->GetPlatformNotificationContext(),
895 resource_context, 896 resource_context,
896 browser_context); 897 browser_context);
897 AddFilter(notification_message_filter_.get()); 898 AddFilter(notification_message_filter_.get());
898 899
899 AddFilter(new GamepadBrowserMessageFilter()); 900 AddFilter(new GamepadBrowserMessageFilter());
900 AddFilter(new DeviceLightMessageFilter()); 901 AddFilter(new DeviceLightMessageFilter());
902 AddFilter(new VRMessageFilter());
901 AddFilter(new DeviceMotionMessageFilter()); 903 AddFilter(new DeviceMotionMessageFilter());
902 AddFilter(new DeviceOrientationMessageFilter()); 904 AddFilter(new DeviceOrientationMessageFilter());
903 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 905 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
904 AddFilter(new HistogramMessageFilter()); 906 AddFilter(new HistogramMessageFilter());
905 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 907 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
906 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 908 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
907 AddFilter(new MemoryBenchmarkMessageFilter()); 909 AddFilter(new MemoryBenchmarkMessageFilter());
908 #endif 910 #endif
909 AddFilter(new PushMessagingMessageFilter( 911 AddFilter(new PushMessagingMessageFilter(
910 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 912 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
1289 switches::kEnableVtune, 1291 switches::kEnableVtune,
1290 switches::kEnableWebGLDraftExtensions, 1292 switches::kEnableWebGLDraftExtensions,
1291 switches::kEnableWebGLImageChromium, 1293 switches::kEnableWebGLImageChromium,
1294 switches::kEnableWebVR,
1292 switches::kForceDeviceScaleFactor, 1295 switches::kForceDeviceScaleFactor,
1293 switches::kForceDisplayList2dCanvas, 1296 switches::kForceDisplayList2dCanvas,
1294 switches::kFullMemoryCrashReport, 1297 switches::kFullMemoryCrashReport,
1295 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, 1298 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode,
1296 switches::kIPCConnectionTimeout, 1299 switches::kIPCConnectionTimeout,
1297 switches::kJavaScriptFlags, 1300 switches::kJavaScriptFlags,
1298 switches::kLoggingLevel, 1301 switches::kLoggingLevel,
1299 switches::kMainFrameResizesAreOrientationChanges, 1302 switches::kMainFrameResizesAreOrientationChanges,
1300 switches::kMaxUntiledLayerWidth, 1303 switches::kMaxUntiledLayerWidth,
1301 switches::kMaxUntiledLayerHeight, 1304 switches::kMaxUntiledLayerHeight,
(...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2453 if (worker_ref_count_ == 0) 2456 if (worker_ref_count_ == 0)
2454 Cleanup(); 2457 Cleanup();
2455 } 2458 }
2456 2459
2457 void RenderProcessHostImpl::GetAudioOutputControllers( 2460 void RenderProcessHostImpl::GetAudioOutputControllers(
2458 const GetAudioOutputControllersCallback& callback) const { 2461 const GetAudioOutputControllersCallback& callback) const {
2459 audio_renderer_host()->GetOutputControllers(callback); 2462 audio_renderer_host()->GetOutputControllers(callback);
2460 } 2463 }
2461 2464
2462 } // namespace content 2465 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698