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 AudioMessageFilter; |
25 class DBMessageFilter; | 26 class DBMessageFilter; |
26 class FilePath; | 27 class FilePath; |
27 class GpuChannelHost; | 28 class GpuChannelHost; |
28 class IndexedDBDispatcher; | 29 class IndexedDBDispatcher; |
29 class RendererHistogram; | 30 class RendererHistogram; |
30 class RendererHistogramSnapshots; | 31 class RendererHistogramSnapshots; |
31 class RenderProcessObserver; | 32 class RenderProcessObserver; |
32 class RendererNetPredictor; | 33 class RendererNetPredictor; |
33 class RendererWebKitClientImpl; | 34 class RendererWebKitClientImpl; |
34 class SkBitmap; | 35 class SkBitmap; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 void DoNotNotifyWebKitOfModalLoop(); | 158 void DoNotNotifyWebKitOfModalLoop(); |
158 | 159 |
159 AppCacheDispatcher* appcache_dispatcher() const { | 160 AppCacheDispatcher* appcache_dispatcher() const { |
160 return appcache_dispatcher_.get(); | 161 return appcache_dispatcher_.get(); |
161 } | 162 } |
162 | 163 |
163 IndexedDBDispatcher* indexed_db_dispatcher() const { | 164 IndexedDBDispatcher* indexed_db_dispatcher() const { |
164 return indexed_db_dispatcher_.get(); | 165 return indexed_db_dispatcher_.get(); |
165 } | 166 } |
166 | 167 |
| 168 AudioMessageFilter* audio_message_filter() { |
| 169 return audio_message_filter_.get(); |
| 170 } |
| 171 |
167 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } | 172 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } |
168 | 173 |
169 double idle_notification_delay_in_s() const { | 174 double idle_notification_delay_in_s() const { |
170 return idle_notification_delay_in_s_; | 175 return idle_notification_delay_in_s_; |
171 } | 176 } |
172 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { | 177 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { |
173 idle_notification_delay_in_s_ = idle_notification_delay_in_s; | 178 idle_notification_delay_in_s_ = idle_notification_delay_in_s; |
174 } | 179 } |
175 | 180 |
176 // Sends a message to the browser to close all connections. | 181 // Sends a message to the browser to close all connections. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 244 |
240 // These objects live solely on the render thread. | 245 // These objects live solely on the render thread. |
241 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; | 246 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; |
242 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 247 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
243 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; | 248 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; |
244 scoped_ptr<RendererWebKitClientImpl> webkit_client_; | 249 scoped_ptr<RendererWebKitClientImpl> webkit_client_; |
245 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; | 250 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; |
246 | 251 |
247 // Used on the renderer and IPC threads. | 252 // Used on the renderer and IPC threads. |
248 scoped_refptr<DBMessageFilter> db_message_filter_; | 253 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 254 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
249 | 255 |
250 // Used on multiple script execution context threads. | 256 // Used on multiple script execution context threads. |
251 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 257 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
252 | 258 |
253 // If true, then a GetPlugins call is allowed to rescan the disk. | 259 // If true, then a GetPlugins call is allowed to rescan the disk. |
254 bool plugin_refresh_allowed_; | 260 bool plugin_refresh_allowed_; |
255 | 261 |
256 // The count of RenderWidgets running through this thread. | 262 // The count of RenderWidgets running through this thread. |
257 int widget_count_; | 263 int widget_count_; |
258 | 264 |
(...skipping 17 matching lines...) Expand all Loading... |
276 | 282 |
277 // Map of registered v8 extensions. The key is the extension name. | 283 // Map of registered v8 extensions. The key is the extension name. |
278 std::set<std::string> v8_extensions_; | 284 std::set<std::string> v8_extensions_; |
279 | 285 |
280 ObserverList<RenderProcessObserver> observers_; | 286 ObserverList<RenderProcessObserver> observers_; |
281 | 287 |
282 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 288 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
283 }; | 289 }; |
284 | 290 |
285 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ | 291 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |