| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace IPC { | 55 namespace IPC { |
| 56 class ForwardingMessageFilter; | 56 class ForwardingMessageFilter; |
| 57 } | 57 } |
| 58 | 58 |
| 59 namespace content { | 59 namespace content { |
| 60 class AudioRendererMixerManager; | 60 class AudioRendererMixerManager; |
| 61 class MediaStreamCenter; | 61 class MediaStreamCenter; |
| 62 class P2PSocketDispatcher; |
| 62 class RenderProcessObserver; | 63 class RenderProcessObserver; |
| 63 | 64 |
| 64 namespace old { | 65 namespace old { |
| 65 class BrowserPluginChannelManager; | 66 class BrowserPluginChannelManager; |
| 66 class BrowserPluginRegistry; | 67 class BrowserPluginRegistry; |
| 67 } | 68 } |
| 68 | 69 |
| 69 } | 70 } |
| 70 | 71 |
| 71 namespace v8 { | 72 namespace v8 { |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 199 |
| 199 AudioMessageFilter* audio_message_filter() { | 200 AudioMessageFilter* audio_message_filter() { |
| 200 return audio_message_filter_.get(); | 201 return audio_message_filter_.get(); |
| 201 } | 202 } |
| 202 | 203 |
| 203 // Creates the embedder implementation of WebMediaStreamCenter. | 204 // Creates the embedder implementation of WebMediaStreamCenter. |
| 204 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. | 205 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. |
| 205 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter( | 206 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter( |
| 206 WebKit::WebMediaStreamCenterClient* client); | 207 WebKit::WebMediaStreamCenterClient* client); |
| 207 | 208 |
| 209 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
| 210 content::P2PSocketDispatcher* p2p_socket_dispatcher() { |
| 211 return p2p_socket_dispatcher_.get(); |
| 212 } |
| 213 |
| 208 VideoCaptureImplManager* video_capture_impl_manager() const { | 214 VideoCaptureImplManager* video_capture_impl_manager() const { |
| 209 return vc_manager_.get(); | 215 return vc_manager_.get(); |
| 210 } | 216 } |
| 211 | 217 |
| 212 // Get the GPU channel. Returns NULL if the channel is not established or | 218 // Get the GPU channel. Returns NULL if the channel is not established or |
| 213 // has been lost. | 219 // has been lost. |
| 214 GpuChannelHost* GetGpuChannel(); | 220 GpuChannelHost* GetGpuChannel(); |
| 215 | 221 |
| 216 // Returns a MessageLoopProxy instance corresponding to the message loop | 222 // Returns a MessageLoopProxy instance corresponding to the message loop |
| 217 // of the thread on which file operations should be run. Must be called | 223 // of the thread on which file operations should be run. Must be called |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 316 |
| 311 // Used on the render thread and deleted by WebKit at shutdown. | 317 // Used on the render thread and deleted by WebKit at shutdown. |
| 312 content::MediaStreamCenter* media_stream_center_; | 318 content::MediaStreamCenter* media_stream_center_; |
| 313 | 319 |
| 314 // Used on the renderer and IPC threads. | 320 // Used on the renderer and IPC threads. |
| 315 scoped_refptr<DBMessageFilter> db_message_filter_; | 321 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 316 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; | 322 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; |
| 317 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 323 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
| 318 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; | 324 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; |
| 319 | 325 |
| 326 // Dispatches all P2P sockets. |
| 327 scoped_refptr<content::P2PSocketDispatcher> p2p_socket_dispatcher_; |
| 328 |
| 320 // Used on multiple threads. | 329 // Used on multiple threads. |
| 321 scoped_refptr<VideoCaptureImplManager> vc_manager_; | 330 scoped_refptr<VideoCaptureImplManager> vc_manager_; |
| 322 | 331 |
| 323 // Used on multiple script execution context threads. | 332 // Used on multiple script execution context threads. |
| 324 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 333 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 325 | 334 |
| 326 // Initialize COM when using plugins outside the sandbox (Windows only). | 335 // Initialize COM when using plugins outside the sandbox (Windows only). |
| 327 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; | 336 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; |
| 328 | 337 |
| 329 // The count of RenderWidgets running through this thread. | 338 // The count of RenderWidgets running through this thread. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 372 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
| 364 | 373 |
| 365 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; | 374 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; |
| 366 | 375 |
| 367 HistogramCustomizer histogram_customizer_; | 376 HistogramCustomizer histogram_customizer_; |
| 368 | 377 |
| 369 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 378 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 370 }; | 379 }; |
| 371 | 380 |
| 372 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 381 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |