| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 PeerConnectionTracker* peer_connection_tracker() { | 259 PeerConnectionTracker* peer_connection_tracker() { |
| 260 return peer_connection_tracker_.get(); | 260 return peer_connection_tracker_.get(); |
| 261 } | 261 } |
| 262 | 262 |
| 263 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 263 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
| 264 P2PSocketDispatcher* p2p_socket_dispatcher() { | 264 P2PSocketDispatcher* p2p_socket_dispatcher() { |
| 265 return p2p_socket_dispatcher_.get(); | 265 return p2p_socket_dispatcher_.get(); |
| 266 } | 266 } |
| 267 | 267 |
| 268 VideoCaptureImplManager* video_capture_impl_manager() const { | 268 VideoCaptureImplManager* video_capture_impl_manager() const { |
| 269 return vc_manager_.get(); | 269 return vc_manager_; |
| 270 } | 270 } |
| 271 | 271 |
| 272 // Get the GPU channel. Returns NULL if the channel is not established or | 272 // Get the GPU channel. Returns NULL if the channel is not established or |
| 273 // has been lost. | 273 // has been lost. |
| 274 GpuChannelHost* GetGpuChannel(); | 274 GpuChannelHost* GetGpuChannel(); |
| 275 | 275 |
| 276 // Returns a MessageLoopProxy instance corresponding to the message loop | 276 // Returns a MessageLoopProxy instance corresponding to the message loop |
| 277 // of the thread on which file operations should be run. Must be called | 277 // of the thread on which file operations should be run. Must be called |
| 278 // on the renderer's main thread. | 278 // on the renderer's main thread. |
| 279 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 279 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 scoped_ptr<MediaStreamDependencyFactory> media_stream_factory_; | 455 scoped_ptr<MediaStreamDependencyFactory> media_stream_factory_; |
| 456 | 456 |
| 457 // This is used to communicate to the browser process the status | 457 // This is used to communicate to the browser process the status |
| 458 // of all the peer connections created in the renderer. | 458 // of all the peer connections created in the renderer. |
| 459 scoped_ptr<PeerConnectionTracker> peer_connection_tracker_; | 459 scoped_ptr<PeerConnectionTracker> peer_connection_tracker_; |
| 460 | 460 |
| 461 // Dispatches all P2P sockets. | 461 // Dispatches all P2P sockets. |
| 462 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; | 462 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; |
| 463 | 463 |
| 464 // Used on the render thread. | 464 // Used on the render thread. |
| 465 scoped_ptr<VideoCaptureImplManager> vc_manager_; | 465 scoped_refptr<VideoCaptureImplManager> vc_manager_; |
| 466 | 466 |
| 467 // The count of RenderWidgets running through this thread. | 467 // The count of RenderWidgets running through this thread. |
| 468 int widget_count_; | 468 int widget_count_; |
| 469 | 469 |
| 470 // The count of hidden RenderWidgets running through this thread. | 470 // The count of hidden RenderWidgets running through this thread. |
| 471 int hidden_widget_count_; | 471 int hidden_widget_count_; |
| 472 | 472 |
| 473 // The current value of the idle notification timer delay. | 473 // The current value of the idle notification timer delay. |
| 474 int64 idle_notification_delay_in_ms_; | 474 int64 idle_notification_delay_in_ms_; |
| 475 | 475 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 bool is_low_res_tiling_enabled_; | 541 bool is_low_res_tiling_enabled_; |
| 542 bool is_lcd_text_enabled_; | 542 bool is_lcd_text_enabled_; |
| 543 bool is_map_image_enabled_; | 543 bool is_map_image_enabled_; |
| 544 | 544 |
| 545 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 545 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 546 }; | 546 }; |
| 547 | 547 |
| 548 } // namespace content | 548 } // namespace content |
| 549 | 549 |
| 550 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 550 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |