OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "base/timer.h" | 16 #include "base/timer.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "content/common/child_thread.h" | 18 #include "content/common/child_thread.h" |
19 #include "content/common/css_colors.h" | 19 #include "content/common/css_colors.h" |
20 #include "content/common/gpu/gpu_process_launch_causes.h" | 20 #include "content/common/gpu/gpu_process_launch_causes.h" |
21 #include "ipc/ipc_channel_proxy.h" | 21 #include "ipc/ipc_channel_proxy.h" |
22 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
23 | 23 |
24 class AppCacheDispatcher; | 24 class AppCacheDispatcher; |
| 25 class AudioInputMessageFilter; |
| 26 class AudioMessageFilter; |
25 class DBMessageFilter; | 27 class DBMessageFilter; |
26 class FilePath; | 28 class FilePath; |
27 class GpuChannelHost; | 29 class GpuChannelHost; |
28 class IndexedDBDispatcher; | 30 class IndexedDBDispatcher; |
29 class RendererHistogram; | 31 class RendererHistogram; |
30 class RendererHistogramSnapshots; | 32 class RendererHistogramSnapshots; |
31 class RenderProcessObserver; | 33 class RenderProcessObserver; |
32 class RendererNetPredictor; | 34 class RendererNetPredictor; |
33 class RendererWebKitClientImpl; | 35 class RendererWebKitClientImpl; |
34 class SkBitmap; | 36 class SkBitmap; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void DoNotNotifyWebKitOfModalLoop(); | 160 void DoNotNotifyWebKitOfModalLoop(); |
159 | 161 |
160 AppCacheDispatcher* appcache_dispatcher() const { | 162 AppCacheDispatcher* appcache_dispatcher() const { |
161 return appcache_dispatcher_.get(); | 163 return appcache_dispatcher_.get(); |
162 } | 164 } |
163 | 165 |
164 IndexedDBDispatcher* indexed_db_dispatcher() const { | 166 IndexedDBDispatcher* indexed_db_dispatcher() const { |
165 return indexed_db_dispatcher_.get(); | 167 return indexed_db_dispatcher_.get(); |
166 } | 168 } |
167 | 169 |
| 170 AudioInputMessageFilter* audio_input_message_filter() { |
| 171 return audio_input_message_filter_.get(); |
| 172 } |
| 173 |
| 174 AudioMessageFilter* audio_message_filter() { |
| 175 return audio_message_filter_.get(); |
| 176 } |
| 177 |
168 VideoCaptureImplManager* video_capture_impl_manager() const { | 178 VideoCaptureImplManager* video_capture_impl_manager() const { |
169 return vc_manager_.get(); | 179 return vc_manager_.get(); |
170 } | 180 } |
171 | 181 |
172 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } | 182 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } |
173 | 183 |
174 double idle_notification_delay_in_s() const { | 184 double idle_notification_delay_in_s() const { |
175 return idle_notification_delay_in_s_; | 185 return idle_notification_delay_in_s_; |
176 } | 186 } |
177 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { | 187 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 254 |
245 // These objects live solely on the render thread. | 255 // These objects live solely on the render thread. |
246 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; | 256 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; |
247 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 257 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
248 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; | 258 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; |
249 scoped_ptr<RendererWebKitClientImpl> webkit_client_; | 259 scoped_ptr<RendererWebKitClientImpl> webkit_client_; |
250 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; | 260 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; |
251 | 261 |
252 // Used on the renderer and IPC threads. | 262 // Used on the renderer and IPC threads. |
253 scoped_refptr<DBMessageFilter> db_message_filter_; | 263 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 264 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; |
| 265 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
254 | 266 |
255 // Used on multiple threads. | 267 // Used on multiple threads. |
256 scoped_refptr<VideoCaptureImplManager> vc_manager_; | 268 scoped_refptr<VideoCaptureImplManager> vc_manager_; |
257 | 269 |
258 // Used on multiple script execution context threads. | 270 // Used on multiple script execution context threads. |
259 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 271 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
260 | 272 |
261 // If true, then a GetPlugins call is allowed to rescan the disk. | 273 // If true, then a GetPlugins call is allowed to rescan the disk. |
262 bool plugin_refresh_allowed_; | 274 bool plugin_refresh_allowed_; |
263 | 275 |
(...skipping 20 matching lines...) Expand all Loading... |
284 | 296 |
285 // Map of registered v8 extensions. The key is the extension name. | 297 // Map of registered v8 extensions. The key is the extension name. |
286 std::set<std::string> v8_extensions_; | 298 std::set<std::string> v8_extensions_; |
287 | 299 |
288 ObserverList<RenderProcessObserver> observers_; | 300 ObserverList<RenderProcessObserver> observers_; |
289 | 301 |
290 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 302 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
291 }; | 303 }; |
292 | 304 |
293 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ | 305 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |