| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 class MediaStreamCenter; | 92 class MediaStreamCenter; |
| 93 class MemoryObserver; | 93 class MemoryObserver; |
| 94 class PeerConnectionDependencyFactory; | 94 class PeerConnectionDependencyFactory; |
| 95 class MidiMessageFilter; | 95 class MidiMessageFilter; |
| 96 class NetInfoDispatcher; | 96 class NetInfoDispatcher; |
| 97 class P2PSocketDispatcher; | 97 class P2PSocketDispatcher; |
| 98 class PeerConnectionTracker; | 98 class PeerConnectionTracker; |
| 99 class RendererDemuxerAndroid; | 99 class RendererDemuxerAndroid; |
| 100 class RendererWebKitPlatformSupportImpl; | 100 class RendererWebKitPlatformSupportImpl; |
| 101 class RenderProcessObserver; | 101 class RenderProcessObserver; |
| 102 class V8HeapStatisticsMonitor; |
| 102 class VideoCaptureImplManager; | 103 class VideoCaptureImplManager; |
| 103 class WebGraphicsContext3DCommandBufferImpl; | 104 class WebGraphicsContext3DCommandBufferImpl; |
| 104 class WebRTCIdentityService; | 105 class WebRTCIdentityService; |
| 105 | 106 |
| 106 // The RenderThreadImpl class represents a background thread where RenderView | 107 // The RenderThreadImpl class represents a background thread where RenderView |
| 107 // instances live. The RenderThread supports an API that is used by its | 108 // instances live. The RenderThread supports an API that is used by its |
| 108 // consumer to talk indirectly to the RenderViews and supporting objects. | 109 // consumer to talk indirectly to the RenderViews and supporting objects. |
| 109 // Likewise, it provides an API for the RenderViews to talk back to the main | 110 // Likewise, it provides an API for the RenderViews to talk back to the main |
| 110 // process (i.e., their corresponding WebContentsImpl). | 111 // process (i.e., their corresponding WebContentsImpl). |
| 111 // | 112 // |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 194 } |
| 194 void set_layout_test_mode(bool layout_test_mode) { | 195 void set_layout_test_mode(bool layout_test_mode) { |
| 195 layout_test_mode_ = layout_test_mode; | 196 layout_test_mode_ = layout_test_mode; |
| 196 } | 197 } |
| 197 | 198 |
| 198 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { | 199 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { |
| 199 DCHECK(webkit_platform_support_); | 200 DCHECK(webkit_platform_support_); |
| 200 return webkit_platform_support_.get(); | 201 return webkit_platform_support_.get(); |
| 201 } | 202 } |
| 202 | 203 |
| 204 V8HeapStatisticsMonitor* v8_heap_statistics_monitor() { |
| 205 return v8_heap_statistics_monitor_.get(); |
| 206 } |
| 207 |
| 203 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { | 208 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { |
| 204 return compositor_output_surface_filter_.get(); | 209 return compositor_output_surface_filter_.get(); |
| 205 } | 210 } |
| 206 | 211 |
| 207 InputHandlerManager* input_handler_manager() const { | 212 InputHandlerManager* input_handler_manager() const { |
| 208 return input_handler_manager_.get(); | 213 return input_handler_manager_.get(); |
| 209 } | 214 } |
| 210 | 215 |
| 211 // Will be NULL if threaded compositing has not been enabled. | 216 // Will be NULL if threaded compositing has not been enabled. |
| 212 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { | 217 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 // The number of idle handler calls that skip sending idle notifications. | 517 // The number of idle handler calls that skip sending idle notifications. |
| 513 int idle_notifications_to_skip_; | 518 int idle_notifications_to_skip_; |
| 514 | 519 |
| 515 bool suspend_webkit_shared_timer_; | 520 bool suspend_webkit_shared_timer_; |
| 516 bool notify_webkit_of_modal_loop_; | 521 bool notify_webkit_of_modal_loop_; |
| 517 bool webkit_shared_timer_suspended_; | 522 bool webkit_shared_timer_suspended_; |
| 518 | 523 |
| 519 // The following flag is used to control layout test specific behavior. | 524 // The following flag is used to control layout test specific behavior. |
| 520 bool layout_test_mode_; | 525 bool layout_test_mode_; |
| 521 | 526 |
| 527 scoped_ptr<V8HeapStatisticsMonitor> v8_heap_statistics_monitor_; |
| 528 |
| 522 // Timer that periodically calls IdleHandler. | 529 // Timer that periodically calls IdleHandler. |
| 523 base::RepeatingTimer<RenderThreadImpl> idle_timer_; | 530 base::RepeatingTimer<RenderThreadImpl> idle_timer_; |
| 524 | 531 |
| 525 // The channel from the renderer process to the GPU process. | 532 // The channel from the renderer process to the GPU process. |
| 526 scoped_refptr<GpuChannelHost> gpu_channel_; | 533 scoped_refptr<GpuChannelHost> gpu_channel_; |
| 527 | 534 |
| 528 // Cache of variables that are needed on the compositor thread by | 535 // Cache of variables that are needed on the compositor thread by |
| 529 // GpuChannelHostFactory methods. | 536 // GpuChannelHostFactory methods. |
| 530 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 537 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
| 531 | 538 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 bool is_one_copy_enabled_; | 589 bool is_one_copy_enabled_; |
| 583 | 590 |
| 584 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 591 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
| 585 | 592 |
| 586 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 593 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 587 }; | 594 }; |
| 588 | 595 |
| 589 } // namespace content | 596 } // namespace content |
| 590 | 597 |
| 591 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 598 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |