Chromium Code Reviews| 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 // Accessor for audio message filter. | |
| 169 AudioMessageFilter* audio_message_filter() { | |
| 170 return audio_message_filter_.get(); | |
|
jam
2011/06/23 18:59:55
nit: two space indent. also, the style is not to a
henrika_dont_use
2011/06/27 15:05:44
Done.
| |
| 171 } | |
| 172 | |
| 167 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } | 173 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } |
| 168 | 174 |
| 169 double idle_notification_delay_in_s() const { | 175 double idle_notification_delay_in_s() const { |
| 170 return idle_notification_delay_in_s_; | 176 return idle_notification_delay_in_s_; |
| 171 } | 177 } |
| 172 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { | 178 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { |
| 173 idle_notification_delay_in_s_ = idle_notification_delay_in_s; | 179 idle_notification_delay_in_s_ = idle_notification_delay_in_s; |
| 174 } | 180 } |
| 175 | 181 |
| 176 // Sends a message to the browser to close all connections. | 182 // Sends a message to the browser to close all connections. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 | 245 |
| 240 // These objects live solely on the render thread. | 246 // These objects live solely on the render thread. |
| 241 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; | 247 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; |
| 242 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 248 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| 243 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; | 249 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; |
| 244 scoped_ptr<RendererWebKitClientImpl> webkit_client_; | 250 scoped_ptr<RendererWebKitClientImpl> webkit_client_; |
| 245 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; | 251 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; |
| 246 | 252 |
| 247 // Used on the renderer and IPC threads. | 253 // Used on the renderer and IPC threads. |
| 248 scoped_refptr<DBMessageFilter> db_message_filter_; | 254 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 255 scoped_refptr<AudioMessageFilter> audio_message_filter_; | |
| 249 | 256 |
| 250 // Used on multiple script execution context threads. | 257 // Used on multiple script execution context threads. |
| 251 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 258 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 252 | 259 |
| 253 // If true, then a GetPlugins call is allowed to rescan the disk. | 260 // If true, then a GetPlugins call is allowed to rescan the disk. |
| 254 bool plugin_refresh_allowed_; | 261 bool plugin_refresh_allowed_; |
| 255 | 262 |
| 256 // The count of RenderWidgets running through this thread. | 263 // The count of RenderWidgets running through this thread. |
| 257 int widget_count_; | 264 int widget_count_; |
| 258 | 265 |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 276 | 283 |
| 277 // Map of registered v8 extensions. The key is the extension name. | 284 // Map of registered v8 extensions. The key is the extension name. |
| 278 std::set<std::string> v8_extensions_; | 285 std::set<std::string> v8_extensions_; |
| 279 | 286 |
| 280 ObserverList<RenderProcessObserver> observers_; | 287 ObserverList<RenderProcessObserver> observers_; |
| 281 | 288 |
| 282 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 289 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
| 283 }; | 290 }; |
| 284 | 291 |
| 285 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ | 292 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |