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

Side by Side Diff: content/renderer/render_thread_impl.h

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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 class P2PSocketDispatcher; 98 class P2PSocketDispatcher;
99 class PeerConnectionTracker; 99 class PeerConnectionTracker;
100 class RenderProcessObserver; 100 class RenderProcessObserver;
101 class RendererBlinkPlatformImpl; 101 class RendererBlinkPlatformImpl;
102 class RendererDemuxerAndroid; 102 class RendererDemuxerAndroid;
103 class RendererScheduler; 103 class RendererScheduler;
104 class ResourceDispatchThrottler; 104 class ResourceDispatchThrottler;
105 class ResourceSchedulingFilter; 105 class ResourceSchedulingFilter;
106 class V8SamplingProfiler; 106 class V8SamplingProfiler;
107 class VideoCaptureImplManager; 107 class VideoCaptureImplManager;
108 class VRDispatcher;
108 class WebGraphicsContext3DCommandBufferImpl; 109 class WebGraphicsContext3DCommandBufferImpl;
109 class WebRTCIdentityService; 110 class WebRTCIdentityService;
110 111
111 #if defined(COMPILER_MSVC) 112 #if defined(COMPILER_MSVC)
112 // See explanation for other RenderViewHostImpl which is the same issue. 113 // See explanation for other RenderViewHostImpl which is the same issue.
113 #pragma warning(push) 114 #pragma warning(push)
114 #pragma warning(disable: 4250) 115 #pragma warning(disable: 4250)
115 #endif 116 #endif
116 117
117 // The RenderThreadImpl class represents a background thread where RenderView 118 // The RenderThreadImpl class represents a background thread where RenderView
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 295 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
295 P2PSocketDispatcher* p2p_socket_dispatcher() { 296 P2PSocketDispatcher* p2p_socket_dispatcher() {
296 return p2p_socket_dispatcher_.get(); 297 return p2p_socket_dispatcher_.get();
297 } 298 }
298 #endif 299 #endif
299 300
300 VideoCaptureImplManager* video_capture_impl_manager() const { 301 VideoCaptureImplManager* video_capture_impl_manager() const {
301 return vc_manager_.get(); 302 return vc_manager_.get();
302 } 303 }
303 304
305 VRDispatcher* vr_dispatcher() const {
306 return vr_dispatcher_.get();
307 }
308
304 // Get the GPU channel. Returns NULL if the channel is not established or 309 // Get the GPU channel. Returns NULL if the channel is not established or
305 // has been lost. 310 // has been lost.
306 GpuChannelHost* GetGpuChannel(); 311 GpuChannelHost* GetGpuChannel();
307 312
308 // Returns a MessageLoopProxy instance corresponding to the message loop 313 // Returns a MessageLoopProxy instance corresponding to the message loop
309 // of the thread on which file operations should be run. Must be called 314 // of the thread on which file operations should be run. Must be called
310 // on the renderer's main thread. 315 // on the renderer's main thread.
311 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); 316 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy();
312 317
313 // Returns a SingleThreadTaskRunner instance corresponding to the message loop 318 // Returns a SingleThreadTaskRunner instance corresponding to the message loop
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 581 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
577 582
578 HistogramCustomizer histogram_customizer_; 583 HistogramCustomizer histogram_customizer_;
579 584
580 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 585 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
581 586
582 #if defined(ENABLE_WEBRTC) 587 #if defined(ENABLE_WEBRTC)
583 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; 588 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_;
584 #endif 589 #endif
585 590
591 scoped_ptr<VRDispatcher> vr_dispatcher_;
592
586 scoped_ptr<MemoryObserver> memory_observer_; 593 scoped_ptr<MemoryObserver> memory_observer_;
587 594
588 scoped_refptr<base::SingleThreadTaskRunner> 595 scoped_refptr<base::SingleThreadTaskRunner>
589 main_thread_compositor_task_runner_; 596 main_thread_compositor_task_runner_;
590 597
591 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; 598 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
592 599
593 // Compositor settings. 600 // Compositor settings.
594 bool is_gpu_rasterization_enabled_; 601 bool is_gpu_rasterization_enabled_;
595 bool is_gpu_rasterization_forced_; 602 bool is_gpu_rasterization_forced_;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 644 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
638 }; 645 };
639 646
640 #if defined(COMPILER_MSVC) 647 #if defined(COMPILER_MSVC)
641 #pragma warning(pop) 648 #pragma warning(pop)
642 #endif 649 #endif
643 650
644 } // namespace content 651 } // namespace content
645 652
646 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 653 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698