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 #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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 class MediaStreamCenter; | 91 class MediaStreamCenter; |
92 class MemoryObserver; | 92 class MemoryObserver; |
93 class PeerConnectionDependencyFactory; | 93 class PeerConnectionDependencyFactory; |
94 class MidiMessageFilter; | 94 class MidiMessageFilter; |
95 class NetInfoDispatcher; | 95 class NetInfoDispatcher; |
96 class P2PSocketDispatcher; | 96 class P2PSocketDispatcher; |
97 class PeerConnectionTracker; | 97 class PeerConnectionTracker; |
98 class RenderProcessObserver; | 98 class RenderProcessObserver; |
99 class RendererBlinkPlatformImpl; | 99 class RendererBlinkPlatformImpl; |
100 class RendererDemuxerAndroid; | 100 class RendererDemuxerAndroid; |
| 101 class RendererScheduler; |
101 class VideoCaptureImplManager; | 102 class VideoCaptureImplManager; |
102 class WebGraphicsContext3DCommandBufferImpl; | 103 class WebGraphicsContext3DCommandBufferImpl; |
103 class WebRTCIdentityService; | 104 class WebRTCIdentityService; |
104 | 105 |
105 // The RenderThreadImpl class represents a background thread where RenderView | 106 // The RenderThreadImpl class represents a background thread where RenderView |
106 // instances live. The RenderThread supports an API that is used by its | 107 // instances live. The RenderThread supports an API that is used by its |
107 // consumer to talk indirectly to the RenderViews and supporting objects. | 108 // consumer to talk indirectly to the RenderViews and supporting objects. |
108 // Likewise, it provides an API for the RenderViews to talk back to the main | 109 // Likewise, it provides an API for the RenderViews to talk back to the main |
109 // process (i.e., their corresponding WebContentsImpl). | 110 // process (i.e., their corresponding WebContentsImpl). |
110 // | 111 // |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // True if we are running layout tests. This currently disables forwarding | 187 // True if we are running layout tests. This currently disables forwarding |
187 // various status messages to the console, skips network error pages, and | 188 // various status messages to the console, skips network error pages, and |
188 // short circuits size update and focus events. | 189 // short circuits size update and focus events. |
189 bool layout_test_mode() const { | 190 bool layout_test_mode() const { |
190 return layout_test_mode_; | 191 return layout_test_mode_; |
191 } | 192 } |
192 void set_layout_test_mode(bool layout_test_mode) { | 193 void set_layout_test_mode(bool layout_test_mode) { |
193 layout_test_mode_ = layout_test_mode; | 194 layout_test_mode_ = layout_test_mode; |
194 } | 195 } |
195 | 196 |
| 197 RendererScheduler* renderer_scheduler() const { |
| 198 DCHECK(renderer_scheduler_); |
| 199 return renderer_scheduler_.get(); |
| 200 } |
| 201 |
196 RendererBlinkPlatformImpl* blink_platform_impl() const { | 202 RendererBlinkPlatformImpl* blink_platform_impl() const { |
197 DCHECK(blink_platform_impl_); | 203 DCHECK(blink_platform_impl_); |
198 return blink_platform_impl_.get(); | 204 return blink_platform_impl_.get(); |
199 } | 205 } |
200 | 206 |
201 scoped_refptr<base::SingleThreadTaskRunner> | 207 scoped_refptr<base::SingleThreadTaskRunner> |
202 main_thread_compositor_task_runner() const { | 208 main_thread_compositor_task_runner() const { |
203 return main_thread_compositor_task_runner_; | 209 return main_thread_compositor_task_runner_; |
204 } | 210 } |
205 | 211 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 #endif | 452 #endif |
447 void OnCreateNewSharedWorker( | 453 void OnCreateNewSharedWorker( |
448 const WorkerProcessMsg_CreateWorker_Params& params); | 454 const WorkerProcessMsg_CreateWorker_Params& params); |
449 | 455 |
450 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); | 456 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); |
451 | 457 |
452 // These objects live solely on the render thread. | 458 // These objects live solely on the render thread. |
453 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 459 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
454 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; | 460 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
455 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 461 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
| 462 scoped_ptr<RendererScheduler> renderer_scheduler_; |
456 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; | 463 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; |
457 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; | 464 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; |
458 | 465 |
459 // Used on the render thread and deleted by WebKit at shutdown. | 466 // Used on the render thread and deleted by WebKit at shutdown. |
460 blink::WebMediaStreamCenter* media_stream_center_; | 467 blink::WebMediaStreamCenter* media_stream_center_; |
461 | 468 |
462 // Used on the renderer and IPC threads. | 469 // Used on the renderer and IPC threads. |
463 scoped_refptr<DBMessageFilter> db_message_filter_; | 470 scoped_refptr<DBMessageFilter> db_message_filter_; |
464 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; | 471 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; |
465 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 472 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 bool is_one_copy_enabled_; | 576 bool is_one_copy_enabled_; |
570 | 577 |
571 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 578 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
572 | 579 |
573 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 580 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
574 }; | 581 }; |
575 | 582 |
576 } // namespace content | 583 } // namespace content |
577 | 584 |
578 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 585 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |