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 23 matching lines...) Expand all Loading... |
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 class WebGraphicsContext3DCommandBufferImpl; | 41 class WebGraphicsContext3DCommandBufferImpl; |
42 | 42 |
43 namespace WebKit { | 43 namespace WebKit { |
| 44 class WebBatteryMonitor; |
44 class WebMediaStreamCenter; | 45 class WebMediaStreamCenter; |
45 class WebMediaStreamCenterClient; | 46 class WebMediaStreamCenterClient; |
46 } | 47 } |
47 | 48 |
48 namespace base { | 49 namespace base { |
49 class MessageLoopProxy; | 50 class MessageLoopProxy; |
50 class Thread; | 51 class Thread; |
51 namespace win { | 52 namespace win { |
52 class ScopedCOMInitializer; | 53 class ScopedCOMInitializer; |
53 } | 54 } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 VideoCaptureImplManager* video_capture_impl_manager() const { | 200 VideoCaptureImplManager* video_capture_impl_manager() const { |
200 return vc_manager_.get(); | 201 return vc_manager_.get(); |
201 } | 202 } |
202 | 203 |
203 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } | 204 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } |
204 | 205 |
205 // Get the GPU channel. Returns NULL if the channel is not established or | 206 // Get the GPU channel. Returns NULL if the channel is not established or |
206 // has been lost. | 207 // has been lost. |
207 GpuChannelHost* GetGpuChannel(); | 208 GpuChannelHost* GetGpuChannel(); |
208 | 209 |
| 210 // Gets the embedder implementation of WebBatteryMonitor. |
| 211 WebKit::WebBatteryMonitor* GetBatteryMonitor(); |
| 212 |
209 // Returns a MessageLoopProxy instance corresponding to the message loop | 213 // Returns a MessageLoopProxy instance corresponding to the message loop |
210 // of the thread on which file operations should be run. Must be called | 214 // of the thread on which file operations should be run. Must be called |
211 // on the renderer's main thread. | 215 // on the renderer's main thread. |
212 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 216 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
213 | 217 |
214 // Causes the idle handler to skip sending idle notifications | 218 // Causes the idle handler to skip sending idle notifications |
215 // on the two next scheduled calls, so idle notifications are | 219 // on the two next scheduled calls, so idle notifications are |
216 // not sent for at least one notification delay. | 220 // not sent for at least one notification delay. |
217 void PostponeIdleNotification(); | 221 void PostponeIdleNotification(); |
218 | 222 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 std::set<std::string> v8_extensions_; | 300 std::set<std::string> v8_extensions_; |
297 | 301 |
298 bool compositor_initialized_; | 302 bool compositor_initialized_; |
299 scoped_ptr<CompositorThread> compositor_thread_; | 303 scoped_ptr<CompositorThread> compositor_thread_; |
300 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; | 304 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; |
301 | 305 |
302 ObserverList<content::RenderProcessObserver> observers_; | 306 ObserverList<content::RenderProcessObserver> observers_; |
303 | 307 |
304 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 308 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
305 | 309 |
| 310 scoped_ptr<WebKit::WebBatteryMonitor> battery_monitor_; |
| 311 |
306 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 312 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
307 }; | 313 }; |
308 | 314 |
309 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 315 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |