OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_THREAD_H_ | 5 #ifndef CHROME_RENDERER_RENDER_THREAD_H_ |
6 #define CHROME_RENDERER_RENDER_THREAD_H_ | 6 #define CHROME_RENDERER_RENDER_THREAD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "app/gfx/native_widget_types.h" | 11 #include "app/gfx/native_widget_types.h" |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "base/task.h" | 13 #include "base/task.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "chrome/common/child_thread.h" | 15 #include "chrome/common/child_thread.h" |
16 #include "chrome/common/css_colors.h" | 16 #include "chrome/common/css_colors.h" |
17 #include "chrome/common/dom_storage_type.h" | 17 #include "chrome/common/dom_storage_type.h" |
18 #include "chrome/renderer/renderer_histogram_snapshots.h" | 18 #include "chrome/renderer/renderer_histogram_snapshots.h" |
19 #include "chrome/renderer/visitedlink_slave.h" | 19 #include "chrome/renderer/visitedlink_slave.h" |
20 | 20 |
21 class AppCacheDispatcher; | 21 class AppCacheDispatcher; |
22 class DBMessageFilter; | 22 class DBMessageFilter; |
23 class DevToolsAgentFilter; | 23 class DevToolsAgentFilter; |
24 class FilePath; | 24 class FilePath; |
25 class ListValue; | 25 class ListValue; |
26 class NullableString16; | 26 class NullableString16; |
27 class RenderDnsMaster; | 27 class RenderDnsMaster; |
28 class RendererHistogram; | 28 class RendererHistogram; |
| 29 class RendererWebDatabaseObserver; |
29 class RendererWebKitClientImpl; | 30 class RendererWebKitClientImpl; |
30 class SkBitmap; | 31 class SkBitmap; |
31 class UserScriptSlave; | 32 class UserScriptSlave; |
32 class URLPattern; | 33 class URLPattern; |
33 | 34 |
34 struct RendererPreferences; | 35 struct RendererPreferences; |
35 struct WebPreferences; | 36 struct WebPreferences; |
36 | 37 |
37 namespace WebKit { | 38 namespace WebKit { |
38 class WebStorageEventDispatcher; | 39 class WebStorageEventDispatcher; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // These objects live solely on the render thread. | 195 // These objects live solely on the render thread. |
195 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; | 196 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; |
196 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 197 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
197 scoped_ptr<UserScriptSlave> user_script_slave_; | 198 scoped_ptr<UserScriptSlave> user_script_slave_; |
198 scoped_ptr<RenderDnsMaster> dns_master_; | 199 scoped_ptr<RenderDnsMaster> dns_master_; |
199 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 200 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
200 scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_; | 201 scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_; |
201 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; | 202 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; |
202 scoped_ptr<RendererWebKitClientImpl> webkit_client_; | 203 scoped_ptr<RendererWebKitClientImpl> webkit_client_; |
203 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; | 204 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; |
| 205 scoped_ptr<RendererWebDatabaseObserver> renderer_web_database_observer_; |
204 | 206 |
| 207 // Used on the renderer and IPC threads. |
205 scoped_refptr<DBMessageFilter> db_message_filter_; | 208 scoped_refptr<DBMessageFilter> db_message_filter_; |
206 | 209 |
207 #if defined(OS_POSIX) | 210 #if defined(OS_POSIX) |
208 scoped_refptr<IPC::ChannelProxy::MessageFilter> | 211 scoped_refptr<IPC::ChannelProxy::MessageFilter> |
209 suicide_on_channel_error_filter_; | 212 suicide_on_channel_error_filter_; |
210 #endif | 213 #endif |
211 | 214 |
212 // If true, then a GetPlugins call is allowed to rescan the disk. | 215 // If true, then a GetPlugins call is allowed to rescan the disk. |
213 bool plugin_refresh_allowed_; | 216 bool plugin_refresh_allowed_; |
214 | 217 |
215 // Is there a pending task for doing CacheStats. | 218 // Is there a pending task for doing CacheStats. |
216 bool cache_stats_task_pending_; | 219 bool cache_stats_task_pending_; |
217 | 220 |
218 // The count of RenderWidgets running through this thread. | 221 // The count of RenderWidgets running through this thread. |
219 int widget_count_; | 222 int widget_count_; |
220 | 223 |
221 // The count of hidden RenderWidgets running through this thread. | 224 // The count of hidden RenderWidgets running through this thread. |
222 int hidden_widget_count_; | 225 int hidden_widget_count_; |
223 | 226 |
224 // The current value of the idle notification timer delay. | 227 // The current value of the idle notification timer delay. |
225 double idle_notification_delay_in_s_; | 228 double idle_notification_delay_in_s_; |
226 | 229 |
227 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 230 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
228 }; | 231 }; |
229 | 232 |
230 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 233 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |