OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_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/time.h" | 14 #include "base/time.h" |
15 #include "base/timer.h" | 15 #include "base/timer.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "content/common/child_process.h" | 17 #include "content/common/child_process.h" |
18 #include "content/common/child_thread.h" | 18 #include "content/common/child_thread.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/common/css_colors.h" | 20 #include "content/common/css_colors.h" |
21 #include "content/common/gpu/client/gpu_channel_host.h" | 21 #include "content/common/gpu/client/gpu_channel_host.h" |
22 #include "content/common/gpu/gpu_process_launch_causes.h" | 22 #include "content/common/gpu/gpu_process_launch_causes.h" |
23 #include "content/public/renderer/render_thread.h" | 23 #include "content/public/renderer/render_thread.h" |
24 #include "content/renderer/browser_plugin/browser_plugin_channel_manager.h" | |
25 #include "content/renderer/browser_plugin/browser_plugin_registry.h" | |
jam
2012/05/16 02:22:40
nit: per style guide, forward declare where possib
Fady Samuel
2012/05/16 04:43:54
Done.
| |
24 #include "ipc/ipc_channel_proxy.h" | 26 #include "ipc/ipc_channel_proxy.h" |
25 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
26 | 28 |
27 class AppCacheDispatcher; | 29 class AppCacheDispatcher; |
28 class AudioInputMessageFilter; | 30 class AudioInputMessageFilter; |
29 class AudioMessageFilter; | 31 class AudioMessageFilter; |
30 class CompositorThread; | 32 class CompositorThread; |
31 class DBMessageFilter; | 33 class DBMessageFilter; |
32 class DevToolsAgentFilter; | 34 class DevToolsAgentFilter; |
33 class DomStorageDispatcher; | 35 class DomStorageDispatcher; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 // resource loads. However, there are exceptions when we need to customize | 158 // resource loads. However, there are exceptions when we need to customize |
157 // the behavior. | 159 // the behavior. |
158 void DoNotSuspendWebKitSharedTimer(); | 160 void DoNotSuspendWebKitSharedTimer(); |
159 void DoNotNotifyWebKitOfModalLoop(); | 161 void DoNotNotifyWebKitOfModalLoop(); |
160 | 162 |
161 // Will be NULL if threaded compositing has not been enabled. | 163 // Will be NULL if threaded compositing has not been enabled. |
162 CompositorThread* compositor_thread() const { | 164 CompositorThread* compositor_thread() const { |
163 return compositor_thread_.get(); | 165 return compositor_thread_.get(); |
164 } | 166 } |
165 | 167 |
168 content::BrowserPluginRegistry* browser_plugin_registry() const { | |
169 return browser_plugin_registry_.get(); | |
170 } | |
171 | |
172 content::BrowserPluginChannelManager* browser_plugin_channel_manager() const { | |
173 return channel_manager_.get(); | |
174 } | |
175 | |
166 AppCacheDispatcher* appcache_dispatcher() const { | 176 AppCacheDispatcher* appcache_dispatcher() const { |
167 return appcache_dispatcher_.get(); | 177 return appcache_dispatcher_.get(); |
168 } | 178 } |
169 | 179 |
170 AudioInputMessageFilter* audio_input_message_filter() { | 180 AudioInputMessageFilter* audio_input_message_filter() { |
171 return audio_input_message_filter_.get(); | 181 return audio_input_message_filter_.get(); |
172 } | 182 } |
173 | 183 |
174 AudioMessageFilter* audio_message_filter() { | 184 AudioMessageFilter* audio_message_filter() { |
175 return audio_message_filter_.get(); | 185 return audio_message_filter_.get(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 void OnGetAccessibilityTree(); | 224 void OnGetAccessibilityTree(); |
215 void OnTempCrashWithData(const GURL& data); | 225 void OnTempCrashWithData(const GURL& data); |
216 | 226 |
217 void IdleHandlerInForegroundTab(); | 227 void IdleHandlerInForegroundTab(); |
218 | 228 |
219 // These objects live solely on the render thread. | 229 // These objects live solely on the render thread. |
220 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 230 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
221 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; | 231 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
222 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 232 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
223 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; | 233 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; |
234 scoped_refptr<content::BrowserPluginChannelManager> channel_manager_; | |
224 | 235 |
225 // Used on the render thread and deleted by WebKit at shutdown. | 236 // Used on the render thread and deleted by WebKit at shutdown. |
226 content::MediaStreamCenter* media_stream_center_; | 237 content::MediaStreamCenter* media_stream_center_; |
227 | 238 |
228 // Used on the renderer and IPC threads. | 239 // Used on the renderer and IPC threads. |
229 scoped_refptr<DBMessageFilter> db_message_filter_; | 240 scoped_refptr<DBMessageFilter> db_message_filter_; |
230 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; | 241 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; |
231 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 242 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
232 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; | 243 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; |
233 | 244 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
265 scoped_refptr<GpuChannelHost> gpu_channel_; | 276 scoped_refptr<GpuChannelHost> gpu_channel_; |
266 | 277 |
267 // A lazily initiated thread on which file operations are run. | 278 // A lazily initiated thread on which file operations are run. |
268 scoped_ptr<base::Thread> file_thread_; | 279 scoped_ptr<base::Thread> file_thread_; |
269 | 280 |
270 // Map of registered v8 extensions. The key is the extension name. | 281 // Map of registered v8 extensions. The key is the extension name. |
271 std::set<std::string> v8_extensions_; | 282 std::set<std::string> v8_extensions_; |
272 | 283 |
273 bool compositor_initialized_; | 284 bool compositor_initialized_; |
274 scoped_ptr<CompositorThread> compositor_thread_; | 285 scoped_ptr<CompositorThread> compositor_thread_; |
286 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; | |
275 | 287 |
276 ObserverList<content::RenderProcessObserver> observers_; | 288 ObserverList<content::RenderProcessObserver> observers_; |
277 | 289 |
278 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 290 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
279 }; | 291 }; |
280 | 292 |
281 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 293 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |