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

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 mdempsky Created 5 years, 7 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 #include "content/browser/renderer_host/media/video_capture_host.h" 92 #include "content/browser/renderer_host/media/video_capture_host.h"
93 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" 93 #include "content/browser/renderer_host/memory_benchmark_message_filter.h"
94 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 94 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
95 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 95 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
96 #include "content/browser/renderer_host/render_message_filter.h" 96 #include "content/browser/renderer_host/render_message_filter.h"
97 #include "content/browser/renderer_host/render_view_host_delegate.h" 97 #include "content/browser/renderer_host/render_view_host_delegate.h"
98 #include "content/browser/renderer_host/render_view_host_impl.h" 98 #include "content/browser/renderer_host/render_view_host_impl.h"
99 #include "content/browser/renderer_host/render_widget_helper.h" 99 #include "content/browser/renderer_host/render_widget_helper.h"
100 #include "content/browser/renderer_host/render_widget_host_impl.h" 100 #include "content/browser/renderer_host/render_widget_host_impl.h"
101 #include "content/browser/renderer_host/text_input_client_message_filter.h" 101 #include "content/browser/renderer_host/text_input_client_message_filter.h"
102 #include "content/browser/renderer_host/vr_message_filter.h"
102 #include "content/browser/renderer_host/websocket_dispatcher_host.h" 103 #include "content/browser/renderer_host/websocket_dispatcher_host.h"
103 #include "content/browser/resolve_proxy_msg_helper.h" 104 #include "content/browser/resolve_proxy_msg_helper.h"
104 #include "content/browser/service_worker/service_worker_context_wrapper.h" 105 #include "content/browser/service_worker/service_worker_context_wrapper.h"
105 #include "content/browser/service_worker/service_worker_dispatcher_host.h" 106 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
106 #include "content/browser/shared_worker/shared_worker_message_filter.h" 107 #include "content/browser/shared_worker/shared_worker_message_filter.h"
107 #include "content/browser/shared_worker/worker_storage_partition.h" 108 #include "content/browser/shared_worker/worker_storage_partition.h"
108 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 109 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
109 #include "content/browser/storage_partition_impl.h" 110 #include "content/browser/storage_partition_impl.h"
110 #include "content/browser/streams/stream_context.h" 111 #include "content/browser/streams/stream_context.h"
111 #include "content/browser/tracing/trace_message_filter.h" 112 #include "content/browser/tracing/trace_message_filter.h"
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 #endif 929 #endif
929 AddFilter(new GeofencingDispatcherHost( 930 AddFilter(new GeofencingDispatcherHost(
930 storage_partition_impl_->GetGeofencingManager())); 931 storage_partition_impl_->GetGeofencingManager()));
931 AddFilter(new NavigatorConnectDispatcherHost( 932 AddFilter(new NavigatorConnectDispatcherHost(
932 storage_partition_impl_->GetNavigatorConnectContext(), 933 storage_partition_impl_->GetNavigatorConnectContext(),
933 message_port_message_filter_.get())); 934 message_port_message_filter_.get()));
934 if (browser_command_line.HasSwitch( 935 if (browser_command_line.HasSwitch(
935 switches::kEnableExperimentalWebPlatformFeatures)) { 936 switches::kEnableExperimentalWebPlatformFeatures)) {
936 AddFilter(new BluetoothDispatcherHost()); 937 AddFilter(new BluetoothDispatcherHost());
937 } 938 }
939 if (browser_command_line.HasSwitch(switches::kEnableWebVR)) {
940 AddFilter(new VRMessageFilter());
941 }
938 } 942 }
939 943
940 void RenderProcessHostImpl::RegisterMojoServices() { 944 void RenderProcessHostImpl::RegisterMojoServices() {
941 mojo_application_host_->service_registry()->AddService( 945 mojo_application_host_->service_registry()->AddService(
942 base::Bind(&device::BatteryMonitorImpl::Create)); 946 base::Bind(&device::BatteryMonitorImpl::Create));
943 947
944 mojo_application_host_->service_registry()->AddService( 948 mojo_application_host_->service_registry()->AddService(
945 base::Bind(&device::VibrationManagerImpl::Create)); 949 base::Bind(&device::VibrationManagerImpl::Create));
946 950
947 mojo_application_host_->service_registry()->AddService( 951 mojo_application_host_->service_registry()->AddService(
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 switches::kEnableStrictSiteIsolation, 1283 switches::kEnableStrictSiteIsolation,
1280 switches::kEnableThreadedCompositing, 1284 switches::kEnableThreadedCompositing,
1281 switches::kEnableTouchDragDrop, 1285 switches::kEnableTouchDragDrop,
1282 switches::kEnableTouchEditing, 1286 switches::kEnableTouchEditing,
1283 switches::kEnableUnsafeES3APIs, 1287 switches::kEnableUnsafeES3APIs,
1284 switches::kEnableViewport, 1288 switches::kEnableViewport,
1285 switches::kEnableViewportMeta, 1289 switches::kEnableViewportMeta,
1286 switches::kEnableVtune, 1290 switches::kEnableVtune,
1287 switches::kEnableWebGLDraftExtensions, 1291 switches::kEnableWebGLDraftExtensions,
1288 switches::kEnableWebGLImageChromium, 1292 switches::kEnableWebGLImageChromium,
1293 switches::kEnableWebVR,
1289 switches::kExplicitlyAllowedPorts, 1294 switches::kExplicitlyAllowedPorts,
1290 switches::kForceDeviceScaleFactor, 1295 switches::kForceDeviceScaleFactor,
1291 switches::kForceDisplayList2dCanvas, 1296 switches::kForceDisplayList2dCanvas,
1292 switches::kFullMemoryCrashReport, 1297 switches::kFullMemoryCrashReport,
1293 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, 1298 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode,
1294 switches::kIPCConnectionTimeout, 1299 switches::kIPCConnectionTimeout,
1295 switches::kJavaScriptFlags, 1300 switches::kJavaScriptFlags,
1296 switches::kLoggingLevel, 1301 switches::kLoggingLevel,
1297 switches::kMainFrameResizesAreOrientationChanges, 1302 switches::kMainFrameResizesAreOrientationChanges,
1298 switches::kMaxUntiledLayerWidth, 1303 switches::kMaxUntiledLayerWidth,
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 if (worker_ref_count_ == 0) 2459 if (worker_ref_count_ == 0)
2455 Cleanup(); 2460 Cleanup();
2456 } 2461 }
2457 2462
2458 void RenderProcessHostImpl::GetAudioOutputControllers( 2463 void RenderProcessHostImpl::GetAudioOutputControllers(
2459 const GetAudioOutputControllersCallback& callback) const { 2464 const GetAudioOutputControllersCallback& callback) const {
2460 audio_renderer_host()->GetOutputControllers(callback); 2465 audio_renderer_host()->GetOutputControllers(callback);
2461 } 2466 }
2462 2467
2463 } // namespace content 2468 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698