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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 // Creates the embedder implementation of WebMediaStreamCenter. | 192 // Creates the embedder implementation of WebMediaStreamCenter. |
193 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. | 193 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. |
194 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter( | 194 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter( |
195 WebKit::WebMediaStreamCenterClient* client); | 195 WebKit::WebMediaStreamCenterClient* client); |
196 | 196 |
197 VideoCaptureImplManager* video_capture_impl_manager() const { | 197 VideoCaptureImplManager* video_capture_impl_manager() const { |
198 return vc_manager_.get(); | 198 return vc_manager_.get(); |
199 } | 199 } |
200 | 200 |
201 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } | |
202 | |
203 // Get the GPU channel. Returns NULL if the channel is not established or | 201 // Get the GPU channel. Returns NULL if the channel is not established or |
204 // has been lost. | 202 // has been lost. |
205 GpuChannelHost* GetGpuChannel(); | 203 GpuChannelHost* GetGpuChannel(); |
206 | 204 |
207 // Returns a MessageLoopProxy instance corresponding to the message loop | 205 // Returns a MessageLoopProxy instance corresponding to the message loop |
208 // of the thread on which file operations should be run. Must be called | 206 // of the thread on which file operations should be run. Must be called |
209 // on the renderer's main thread. | 207 // on the renderer's main thread. |
210 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 208 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
211 | 209 |
212 // Causes the idle handler to skip sending idle notifications | 210 // Causes the idle handler to skip sending idle notifications |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 259 |
262 // Used on multiple threads. | 260 // Used on multiple threads. |
263 scoped_refptr<VideoCaptureImplManager> vc_manager_; | 261 scoped_refptr<VideoCaptureImplManager> vc_manager_; |
264 | 262 |
265 // Used on multiple script execution context threads. | 263 // Used on multiple script execution context threads. |
266 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 264 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
267 | 265 |
268 // Initialize COM when using plugins outside the sandbox (Windows only). | 266 // Initialize COM when using plugins outside the sandbox (Windows only). |
269 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; | 267 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; |
270 | 268 |
271 // If true, then a GetPlugins call is allowed to rescan the disk. | |
272 bool plugin_refresh_allowed_; | |
273 | |
274 // The count of RenderWidgets running through this thread. | 269 // The count of RenderWidgets running through this thread. |
275 int widget_count_; | 270 int widget_count_; |
276 | 271 |
277 // The count of hidden RenderWidgets running through this thread. | 272 // The count of hidden RenderWidgets running through this thread. |
278 int hidden_widget_count_; | 273 int hidden_widget_count_; |
279 | 274 |
280 // The current value of the idle notification timer delay. | 275 // The current value of the idle notification timer delay. |
281 int64 idle_notification_delay_in_ms_; | 276 int64 idle_notification_delay_in_ms_; |
282 | 277 |
283 // The number of idle handler calls that skip sending idle notifications. | 278 // The number of idle handler calls that skip sending idle notifications. |
(...skipping 21 matching lines...) Expand all Loading... |
305 ObserverList<content::RenderProcessObserver> observers_; | 300 ObserverList<content::RenderProcessObserver> observers_; |
306 | 301 |
307 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 302 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
308 | 303 |
309 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; | 304 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; |
310 | 305 |
311 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 306 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
312 }; | 307 }; |
313 | 308 |
314 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 309 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |