| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 struct DOMStorageMsg_Event_Params; | 33 struct DOMStorageMsg_Event_Params; |
| 34 class GpuChannelHost; | 34 class GpuChannelHost; |
| 35 class IndexedDBDispatcher; | 35 class IndexedDBDispatcher; |
| 36 class RendererWebKitPlatformSupportImpl; | 36 class RendererWebKitPlatformSupportImpl; |
| 37 class SkBitmap; | 37 class SkBitmap; |
| 38 class VideoCaptureImplManager; | 38 class VideoCaptureImplManager; |
| 39 struct ViewMsg_New_Params; | 39 struct ViewMsg_New_Params; |
| 40 class WebDatabaseObserverImpl; | 40 class WebDatabaseObserverImpl; |
| 41 | 41 |
| 42 namespace WebKit { | 42 namespace WebKit { |
| 43 class WebMediaStreamCenter; |
| 44 class WebMediaStreamCenterClient; |
| 43 class WebStorageEventDispatcher; | 45 class WebStorageEventDispatcher; |
| 44 } | 46 } |
| 45 | 47 |
| 46 namespace base { | 48 namespace base { |
| 47 class MessageLoopProxy; | 49 class MessageLoopProxy; |
| 48 class Thread; | 50 class Thread; |
| 49 namespace win { | 51 namespace win { |
| 50 class ScopedCOMInitializer; | 52 class ScopedCOMInitializer; |
| 51 } | 53 } |
| 52 } | 54 } |
| 53 | 55 |
| 54 namespace content { | 56 namespace content { |
| 57 class MediaStreamCenter; |
| 55 class RenderProcessObserver; | 58 class RenderProcessObserver; |
| 56 } | 59 } |
| 57 | 60 |
| 58 namespace v8 { | 61 namespace v8 { |
| 59 class Extension; | 62 class Extension; |
| 60 } | 63 } |
| 61 | 64 |
| 62 // The RenderThreadImpl class represents a background thread where RenderView | 65 // The RenderThreadImpl class represents a background thread where RenderView |
| 63 // instances live. The RenderThread supports an API that is used by its | 66 // instances live. The RenderThread supports an API that is used by its |
| 64 // consumer to talk indirectly to the RenderViews and supporting objects. | 67 // consumer to talk indirectly to the RenderViews and supporting objects. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 165 } |
| 163 | 166 |
| 164 AudioInputMessageFilter* audio_input_message_filter() { | 167 AudioInputMessageFilter* audio_input_message_filter() { |
| 165 return audio_input_message_filter_.get(); | 168 return audio_input_message_filter_.get(); |
| 166 } | 169 } |
| 167 | 170 |
| 168 AudioMessageFilter* audio_message_filter() { | 171 AudioMessageFilter* audio_message_filter() { |
| 169 return audio_message_filter_.get(); | 172 return audio_message_filter_.get(); |
| 170 } | 173 } |
| 171 | 174 |
| 175 // Creates the embedder implementation of WebMediaStreamCenter. |
| 176 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. |
| 177 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter( |
| 178 WebKit::WebMediaStreamCenterClient* client); |
| 179 |
| 172 VideoCaptureImplManager* video_capture_impl_manager() const { | 180 VideoCaptureImplManager* video_capture_impl_manager() const { |
| 173 return vc_manager_.get(); | 181 return vc_manager_.get(); |
| 174 } | 182 } |
| 175 | 183 |
| 176 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } | 184 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } |
| 177 | 185 |
| 178 // Get the GPU channel. Returns NULL if the channel is not established or | 186 // Get the GPU channel. Returns NULL if the channel is not established or |
| 179 // has been lost. | 187 // has been lost. |
| 180 GpuChannelHost* GetGpuChannel(); | 188 GpuChannelHost* GetGpuChannel(); |
| 181 | 189 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 205 void OnTempCrashWithData(const GURL& data); | 213 void OnTempCrashWithData(const GURL& data); |
| 206 | 214 |
| 207 void IdleHandlerInForegroundTab(); | 215 void IdleHandlerInForegroundTab(); |
| 208 | 216 |
| 209 // These objects live solely on the render thread. | 217 // These objects live solely on the render thread. |
| 210 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 218 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| 211 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 219 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
| 212 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; | 220 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; |
| 213 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; | 221 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; |
| 214 | 222 |
| 223 // Used on the render thread and deleted by WebKit at shutdown. |
| 224 content::MediaStreamCenter* media_stream_center_; |
| 225 |
| 215 // Used on the renderer and IPC threads. | 226 // Used on the renderer and IPC threads. |
| 216 scoped_refptr<DBMessageFilter> db_message_filter_; | 227 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 217 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; | 228 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; |
| 218 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 229 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
| 219 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; | 230 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; |
| 220 | 231 |
| 221 // Used on multiple threads. | 232 // Used on multiple threads. |
| 222 scoped_refptr<VideoCaptureImplManager> vc_manager_; | 233 scoped_refptr<VideoCaptureImplManager> vc_manager_; |
| 223 | 234 |
| 224 // Used on multiple script execution context threads. | 235 // Used on multiple script execution context threads. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 270 |
| 260 bool compositor_initialized_; | 271 bool compositor_initialized_; |
| 261 scoped_ptr<CompositorThread> compositor_thread_; | 272 scoped_ptr<CompositorThread> compositor_thread_; |
| 262 | 273 |
| 263 ObserverList<content::RenderProcessObserver> observers_; | 274 ObserverList<content::RenderProcessObserver> observers_; |
| 264 | 275 |
| 265 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 276 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 266 }; | 277 }; |
| 267 | 278 |
| 268 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 279 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |