| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 namespace base { | 47 namespace base { |
| 48 class MessageLoopProxy; | 48 class MessageLoopProxy; |
| 49 class Thread; | 49 class Thread; |
| 50 namespace win { | 50 namespace win { |
| 51 class ScopedCOMInitializer; | 51 class ScopedCOMInitializer; |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace content { | 55 namespace content { |
| 56 class AudioRendererMixerManager; |
| 56 class BrowserPluginChannelManager; | 57 class BrowserPluginChannelManager; |
| 57 class BrowserPluginRegistry; | 58 class BrowserPluginRegistry; |
| 58 class MediaStreamCenter; | 59 class MediaStreamCenter; |
| 59 class RenderProcessObserver; | 60 class RenderProcessObserver; |
| 60 } | 61 } |
| 61 | 62 |
| 62 namespace v8 { | 63 namespace v8 { |
| 63 class Extension; | 64 class Extension; |
| 64 } | 65 } |
| 65 | 66 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // not sent for at least one notification delay. | 217 // not sent for at least one notification delay. |
| 217 void PostponeIdleNotification(); | 218 void PostponeIdleNotification(); |
| 218 | 219 |
| 219 // Returns a graphics context shared among all | 220 // Returns a graphics context shared among all |
| 220 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned | 221 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned |
| 221 // by this class and must be null-tested before each use to detect context | 222 // by this class and must be null-tested before each use to detect context |
| 222 // loss. The returned WeakPtr<> is only valid on the compositor thread when | 223 // loss. The returned WeakPtr<> is only valid on the compositor thread when |
| 223 // threaded compositing is enabled. | 224 // threaded compositing is enabled. |
| 224 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> GetGpuVDAContext3D(); | 225 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> GetGpuVDAContext3D(); |
| 225 | 226 |
| 227 // AudioRendererMixerManager instance which manages renderer side mixer |
| 228 // instances shared based on configured audio parameters. Lazily created on |
| 229 // first call. |
| 230 content::AudioRendererMixerManager* GetAudioRendererMixerManager(); |
| 231 |
| 226 private: | 232 private: |
| 227 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 233 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 228 | 234 |
| 229 void Init(); | 235 void Init(); |
| 230 | 236 |
| 231 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); | 237 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); |
| 232 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 238 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
| 233 void OnCreateNewView(const ViewMsg_New_Params& params); | 239 void OnCreateNewView(const ViewMsg_New_Params& params); |
| 234 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 240 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
| 235 void OnPurgePluginListCache(bool reload_pages); | 241 void OnPurgePluginListCache(bool reload_pages); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 std::set<std::string> v8_extensions_; | 302 std::set<std::string> v8_extensions_; |
| 297 | 303 |
| 298 bool compositor_initialized_; | 304 bool compositor_initialized_; |
| 299 scoped_ptr<CompositorThread> compositor_thread_; | 305 scoped_ptr<CompositorThread> compositor_thread_; |
| 300 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; | 306 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; |
| 301 | 307 |
| 302 ObserverList<content::RenderProcessObserver> observers_; | 308 ObserverList<content::RenderProcessObserver> observers_; |
| 303 | 309 |
| 304 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 310 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
| 305 | 311 |
| 312 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; |
| 313 |
| 306 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 314 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 307 }; | 315 }; |
| 308 | 316 |
| 309 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 317 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |