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

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: Addressed the rest of sievers@ input 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 #include "content/browser/renderer_host/media/video_capture_host.h" 88 #include "content/browser/renderer_host/media/video_capture_host.h"
89 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" 89 #include "content/browser/renderer_host/memory_benchmark_message_filter.h"
90 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 90 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
91 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 91 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
92 #include "content/browser/renderer_host/render_message_filter.h" 92 #include "content/browser/renderer_host/render_message_filter.h"
93 #include "content/browser/renderer_host/render_view_host_delegate.h" 93 #include "content/browser/renderer_host/render_view_host_delegate.h"
94 #include "content/browser/renderer_host/render_view_host_impl.h" 94 #include "content/browser/renderer_host/render_view_host_impl.h"
95 #include "content/browser/renderer_host/render_widget_helper.h" 95 #include "content/browser/renderer_host/render_widget_helper.h"
96 #include "content/browser/renderer_host/render_widget_host_impl.h" 96 #include "content/browser/renderer_host/render_widget_host_impl.h"
97 #include "content/browser/renderer_host/text_input_client_message_filter.h" 97 #include "content/browser/renderer_host/text_input_client_message_filter.h"
98 #include "content/browser/renderer_host/vr_message_filter.h"
98 #include "content/browser/renderer_host/websocket_dispatcher_host.h" 99 #include "content/browser/renderer_host/websocket_dispatcher_host.h"
99 #include "content/browser/resolve_proxy_msg_helper.h" 100 #include "content/browser/resolve_proxy_msg_helper.h"
100 #include "content/browser/service_worker/cache_storage_context_impl.h" 101 #include "content/browser/service_worker/cache_storage_context_impl.h"
101 #include "content/browser/service_worker/cache_storage_dispatcher_host.h" 102 #include "content/browser/service_worker/cache_storage_dispatcher_host.h"
102 #include "content/browser/service_worker/service_worker_context_wrapper.h" 103 #include "content/browser/service_worker/service_worker_context_wrapper.h"
103 #include "content/browser/service_worker/service_worker_dispatcher_host.h" 104 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
104 #include "content/browser/shared_worker/shared_worker_message_filter.h" 105 #include "content/browser/shared_worker/shared_worker_message_filter.h"
105 #include "content/browser/shared_worker/worker_storage_partition.h" 106 #include "content/browser/shared_worker/worker_storage_partition.h"
106 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 107 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
107 #include "content/browser/storage_partition_impl.h" 108 #include "content/browser/storage_partition_impl.h"
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 908
908 notification_message_filter_ = new NotificationMessageFilter( 909 notification_message_filter_ = new NotificationMessageFilter(
909 GetID(), 910 GetID(),
910 storage_partition_impl_->GetPlatformNotificationContext(), 911 storage_partition_impl_->GetPlatformNotificationContext(),
911 resource_context, 912 resource_context,
912 browser_context); 913 browser_context);
913 AddFilter(notification_message_filter_.get()); 914 AddFilter(notification_message_filter_.get());
914 915
915 AddFilter(new GamepadBrowserMessageFilter()); 916 AddFilter(new GamepadBrowserMessageFilter());
916 AddFilter(new DeviceLightMessageFilter()); 917 AddFilter(new DeviceLightMessageFilter());
918 AddFilter(new VRMessageFilter());
917 AddFilter(new DeviceMotionMessageFilter()); 919 AddFilter(new DeviceMotionMessageFilter());
918 AddFilter(new DeviceOrientationMessageFilter()); 920 AddFilter(new DeviceOrientationMessageFilter());
919 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 921 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
920 AddFilter(new HistogramMessageFilter()); 922 AddFilter(new HistogramMessageFilter());
921 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 923 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
922 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 924 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
923 AddFilter(new MemoryBenchmarkMessageFilter()); 925 AddFilter(new MemoryBenchmarkMessageFilter());
924 #endif 926 #endif
925 AddFilter(new PushMessagingMessageFilter( 927 AddFilter(new PushMessagingMessageFilter(
926 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 928 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 switches::kEnableStrictSiteIsolation, 1300 switches::kEnableStrictSiteIsolation,
1299 switches::kEnableThreadedCompositing, 1301 switches::kEnableThreadedCompositing,
1300 switches::kEnableTouchDragDrop, 1302 switches::kEnableTouchDragDrop,
1301 switches::kEnableTouchEditing, 1303 switches::kEnableTouchEditing,
1302 switches::kEnableUnsafeES3APIs, 1304 switches::kEnableUnsafeES3APIs,
1303 switches::kEnableViewport, 1305 switches::kEnableViewport,
1304 switches::kEnableViewportMeta, 1306 switches::kEnableViewportMeta,
1305 switches::kEnableVtune, 1307 switches::kEnableVtune,
1306 switches::kEnableWebGLDraftExtensions, 1308 switches::kEnableWebGLDraftExtensions,
1307 switches::kEnableWebGLImageChromium, 1309 switches::kEnableWebGLImageChromium,
1310 switches::kEnableWebVR,
1308 switches::kForceDeviceScaleFactor, 1311 switches::kForceDeviceScaleFactor,
1309 switches::kForceDisplayList2dCanvas, 1312 switches::kForceDisplayList2dCanvas,
1310 switches::kFullMemoryCrashReport, 1313 switches::kFullMemoryCrashReport,
1311 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, 1314 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode,
1312 switches::kIPCConnectionTimeout, 1315 switches::kIPCConnectionTimeout,
1313 switches::kJavaScriptFlags, 1316 switches::kJavaScriptFlags,
1314 switches::kLoggingLevel, 1317 switches::kLoggingLevel,
1315 switches::kMainFrameResizesAreOrientationChanges, 1318 switches::kMainFrameResizesAreOrientationChanges,
1316 switches::kMaxUntiledLayerWidth, 1319 switches::kMaxUntiledLayerWidth,
1317 switches::kMaxUntiledLayerHeight, 1320 switches::kMaxUntiledLayerHeight,
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 if (worker_ref_count_ == 0) 2492 if (worker_ref_count_ == 0)
2490 Cleanup(); 2493 Cleanup();
2491 } 2494 }
2492 2495
2493 void RenderProcessHostImpl::GetAudioOutputControllers( 2496 void RenderProcessHostImpl::GetAudioOutputControllers(
2494 const GetAudioOutputControllersCallback& callback) const { 2497 const GetAudioOutputControllersCallback& callback) const {
2495 audio_renderer_host()->GetOutputControllers(callback); 2498 audio_renderer_host()->GetOutputControllers(callback);
2496 } 2499 }
2497 2500
2498 } // namespace content 2501 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698