| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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 RendererWebDatabaseObserver; |
| 30 class RendererWebKitClientImpl; | 30 class RendererWebKitClientImpl; |
| 31 class SkBitmap; | 31 class SkBitmap; |
| 32 class SocketStreamDispatcher; |
| 32 class UserScriptSlave; | 33 class UserScriptSlave; |
| 33 class URLPattern; | 34 class URLPattern; |
| 34 | 35 |
| 35 struct RendererPreferences; | 36 struct RendererPreferences; |
| 36 struct WebPreferences; | 37 struct WebPreferences; |
| 37 | 38 |
| 38 namespace WebKit { | 39 namespace WebKit { |
| 39 class WebStorageEventDispatcher; | 40 class WebStorageEventDispatcher; |
| 40 } | 41 } |
| 41 | 42 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 109 } |
| 109 | 110 |
| 110 UserScriptSlave* user_script_slave() const { | 111 UserScriptSlave* user_script_slave() const { |
| 111 return user_script_slave_.get(); | 112 return user_script_slave_.get(); |
| 112 } | 113 } |
| 113 | 114 |
| 114 AppCacheDispatcher* appcache_dispatcher() const { | 115 AppCacheDispatcher* appcache_dispatcher() const { |
| 115 return appcache_dispatcher_.get(); | 116 return appcache_dispatcher_.get(); |
| 116 } | 117 } |
| 117 | 118 |
| 119 SocketStreamDispatcher* socket_stream_dispatcher() const { |
| 120 return socket_stream_dispatcher_.get(); |
| 121 } |
| 122 |
| 118 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } | 123 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } |
| 119 | 124 |
| 120 // Do DNS prefetch resolution of a hostname. | 125 // Do DNS prefetch resolution of a hostname. |
| 121 void Resolve(const char* name, size_t length); | 126 void Resolve(const char* name, size_t length); |
| 122 | 127 |
| 123 // Send all the Histogram data to browser. | 128 // Send all the Histogram data to browser. |
| 124 void SendHistograms(int sequence_number); | 129 void SendHistograms(int sequence_number); |
| 125 | 130 |
| 126 // Invokes InformHostOfCacheStats after a short delay. Used to move this | 131 // Invokes InformHostOfCacheStats after a short delay. Used to move this |
| 127 // bookkeeping operation off the critical latency path. | 132 // bookkeeping operation off the critical latency path. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // These objects live solely on the render thread. | 200 // These objects live solely on the render thread. |
| 196 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; | 201 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; |
| 197 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 202 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
| 198 scoped_ptr<UserScriptSlave> user_script_slave_; | 203 scoped_ptr<UserScriptSlave> user_script_slave_; |
| 199 scoped_ptr<RenderDnsMaster> dns_master_; | 204 scoped_ptr<RenderDnsMaster> dns_master_; |
| 200 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 205 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| 201 scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_; | 206 scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_; |
| 202 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; | 207 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; |
| 203 scoped_ptr<RendererWebKitClientImpl> webkit_client_; | 208 scoped_ptr<RendererWebKitClientImpl> webkit_client_; |
| 204 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; | 209 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; |
| 210 scoped_ptr<SocketStreamDispatcher> socket_stream_dispatcher_; |
| 205 scoped_ptr<RendererWebDatabaseObserver> renderer_web_database_observer_; | 211 scoped_ptr<RendererWebDatabaseObserver> renderer_web_database_observer_; |
| 206 | 212 |
| 207 // Used on the renderer and IPC threads. | 213 // Used on the renderer and IPC threads. |
| 208 scoped_refptr<DBMessageFilter> db_message_filter_; | 214 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 209 | 215 |
| 210 #if defined(OS_POSIX) | 216 #if defined(OS_POSIX) |
| 211 scoped_refptr<IPC::ChannelProxy::MessageFilter> | 217 scoped_refptr<IPC::ChannelProxy::MessageFilter> |
| 212 suicide_on_channel_error_filter_; | 218 suicide_on_channel_error_filter_; |
| 213 #endif | 219 #endif |
| 214 | 220 |
| 215 // If true, then a GetPlugins call is allowed to rescan the disk. | 221 // If true, then a GetPlugins call is allowed to rescan the disk. |
| 216 bool plugin_refresh_allowed_; | 222 bool plugin_refresh_allowed_; |
| 217 | 223 |
| 218 // Is there a pending task for doing CacheStats. | 224 // Is there a pending task for doing CacheStats. |
| 219 bool cache_stats_task_pending_; | 225 bool cache_stats_task_pending_; |
| 220 | 226 |
| 221 // The count of RenderWidgets running through this thread. | 227 // The count of RenderWidgets running through this thread. |
| 222 int widget_count_; | 228 int widget_count_; |
| 223 | 229 |
| 224 // The count of hidden RenderWidgets running through this thread. | 230 // The count of hidden RenderWidgets running through this thread. |
| 225 int hidden_widget_count_; | 231 int hidden_widget_count_; |
| 226 | 232 |
| 227 // The current value of the idle notification timer delay. | 233 // The current value of the idle notification timer delay. |
| 228 double idle_notification_delay_in_s_; | 234 double idle_notification_delay_in_s_; |
| 229 | 235 |
| 230 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 236 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
| 231 }; | 237 }; |
| 232 | 238 |
| 233 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 239 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |