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> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/public/renderer/render_thread.h" | 23 #include "content/public/renderer/render_thread.h" |
24 #include "ipc/ipc_channel_proxy.h" | 24 #include "ipc/ipc_channel_proxy.h" |
25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
26 | 26 |
27 class AppCacheDispatcher; | 27 class AppCacheDispatcher; |
28 class AudioInputMessageFilter; | 28 class AudioInputMessageFilter; |
29 class AudioMessageFilter; | 29 class AudioMessageFilter; |
30 class CompositorThread; | 30 class CompositorThread; |
31 class DBMessageFilter; | 31 class DBMessageFilter; |
32 class DevToolsAgentFilter; | 32 class DevToolsAgentFilter; |
33 struct DOMStorageMsg_Event_Params; | 33 class DomStorageDispatcher; |
34 class GpuChannelHost; | 34 class GpuChannelHost; |
35 class IndexedDBDispatcher; | 35 class IndexedDBDispatcher; |
36 class RendererWebKitPlatformSupportImpl; | 36 class RendererWebKitPlatformSupportImpl; |
37 class SkBitmap; | 37 class SkBitmap; |
38 class VideoCaptureImplManager; | 38 class VideoCaptureImplManager; |
39 struct ViewMsg_New_Params; | 39 struct ViewMsg_New_Params; |
40 class WebDatabaseObserverImpl; | 40 class WebDatabaseObserverImpl; |
41 | 41 |
42 namespace WebKit { | 42 namespace WebKit { |
43 class WebMediaStreamCenter; | 43 class WebMediaStreamCenter; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // on the two next scheduled calls, so idle notifications are | 199 // on the two next scheduled calls, so idle notifications are |
200 // not sent for at least one notification delay. | 200 // not sent for at least one notification delay. |
201 void PostponeIdleNotification(); | 201 void PostponeIdleNotification(); |
202 | 202 |
203 private: | 203 private: |
204 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 204 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
205 | 205 |
206 void Init(); | 206 void Init(); |
207 | 207 |
208 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); | 208 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); |
209 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); | |
210 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 209 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
211 void OnCreateNewView(const ViewMsg_New_Params& params); | 210 void OnCreateNewView(const ViewMsg_New_Params& params); |
212 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 211 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
213 void OnPurgePluginListCache(bool reload_pages); | 212 void OnPurgePluginListCache(bool reload_pages); |
214 void OnNetworkStateChanged(bool online); | 213 void OnNetworkStateChanged(bool online); |
215 void OnGetAccessibilityTree(); | 214 void OnGetAccessibilityTree(); |
216 void OnTempCrashWithData(const GURL& data); | 215 void OnTempCrashWithData(const GURL& data); |
217 | 216 |
218 void IdleHandlerInForegroundTab(); | 217 void IdleHandlerInForegroundTab(); |
219 | 218 |
220 // These objects live solely on the render thread. | 219 // These objects live solely on the render thread. |
221 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 220 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| 221 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
222 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 222 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
223 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; | 223 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; |
224 | 224 |
225 // Used on the render thread and deleted by WebKit at shutdown. | 225 // Used on the render thread and deleted by WebKit at shutdown. |
226 content::MediaStreamCenter* media_stream_center_; | 226 content::MediaStreamCenter* media_stream_center_; |
227 | 227 |
228 // Used on the renderer and IPC threads. | 228 // Used on the renderer and IPC threads. |
229 scoped_refptr<DBMessageFilter> db_message_filter_; | 229 scoped_refptr<DBMessageFilter> db_message_filter_; |
230 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; | 230 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; |
231 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 231 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 bool compositor_initialized_; | 273 bool compositor_initialized_; |
274 scoped_ptr<CompositorThread> compositor_thread_; | 274 scoped_ptr<CompositorThread> compositor_thread_; |
275 | 275 |
276 ObserverList<content::RenderProcessObserver> observers_; | 276 ObserverList<content::RenderProcessObserver> observers_; |
277 | 277 |
278 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 278 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
279 }; | 279 }; |
280 | 280 |
281 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 281 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |