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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "app/gfx/native_widget_types.h" | 12 #include "app/gfx/native_widget_types.h" |
13 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "base/task.h" | 15 #include "base/task.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "base/timer.h" | 17 #include "base/timer.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/common/child_thread.h" | 19 #include "chrome/common/child_thread.h" |
20 #include "chrome/common/css_colors.h" | 20 #include "chrome/common/css_colors.h" |
21 #include "chrome/common/dom_storage_type.h" | 21 #include "chrome/common/dom_storage_common.h" |
22 #include "chrome/renderer/renderer_histogram_snapshots.h" | 22 #include "chrome/renderer/renderer_histogram_snapshots.h" |
23 #include "chrome/renderer/visitedlink_slave.h" | 23 #include "chrome/renderer/visitedlink_slave.h" |
24 #include "ipc/ipc_platform_file.h" | 24 #include "ipc/ipc_platform_file.h" |
25 | 25 |
26 class AppCacheDispatcher; | 26 class AppCacheDispatcher; |
27 class DBMessageFilter; | 27 class DBMessageFilter; |
28 class DevToolsAgentFilter; | 28 class DevToolsAgentFilter; |
29 class FilePath; | 29 class FilePath; |
30 class ListValue; | 30 class ListValue; |
31 class NullableString16; | 31 class NullableString16; |
32 class RenderDnsMaster; | 32 class RenderDnsMaster; |
33 class RendererHistogram; | 33 class RendererHistogram; |
34 class RendererWebDatabaseObserver; | 34 class RendererWebDatabaseObserver; |
35 class RendererWebKitClientImpl; | 35 class RendererWebKitClientImpl; |
36 class SpellCheck; | 36 class SpellCheck; |
37 class SkBitmap; | 37 class SkBitmap; |
38 class UserScriptSlave; | 38 class UserScriptSlave; |
39 class URLPattern; | 39 class URLPattern; |
40 | 40 |
41 struct RendererPreferences; | 41 struct RendererPreferences; |
42 struct ViewMsg_DOMStorageEvent_Params; | 42 struct ViewMsg_DOMStorageEvent_Params; |
| 43 struct ViewMsg_New_Params; |
43 struct WebPreferences; | 44 struct WebPreferences; |
44 | 45 |
45 namespace WebKit { | 46 namespace WebKit { |
46 class WebStorageEventDispatcher; | 47 class WebStorageEventDispatcher; |
47 } | 48 } |
48 | 49 |
49 // The RenderThreadBase is the minimal interface that a RenderView/Widget | 50 // The RenderThreadBase is the minimal interface that a RenderView/Widget |
50 // expects from a render thread. The interface basically abstracts a way to send | 51 // expects from a render thread. The interface basically abstracts a way to send |
51 // and receive messages. | 52 // and receive messages. |
52 class RenderThreadBase { | 53 class RenderThreadBase { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 const std::vector<std::string>& page_actions); | 165 const std::vector<std::string>& page_actions); |
165 void OnDOMStorageEvent(const ViewMsg_DOMStorageEvent_Params& params); | 166 void OnDOMStorageEvent(const ViewMsg_DOMStorageEvent_Params& params); |
166 void OnExtensionSetAPIPermissions( | 167 void OnExtensionSetAPIPermissions( |
167 const std::string& extension_id, | 168 const std::string& extension_id, |
168 const std::vector<std::string>& permissions); | 169 const std::vector<std::string>& permissions); |
169 void OnExtensionSetHostPermissions( | 170 void OnExtensionSetHostPermissions( |
170 const GURL& extension_url, | 171 const GURL& extension_url, |
171 const std::vector<URLPattern>& permissions); | 172 const std::vector<URLPattern>& permissions); |
172 void OnSetNextPageID(int32 next_page_id); | 173 void OnSetNextPageID(int32 next_page_id); |
173 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 174 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
174 void OnCreateNewView(gfx::NativeViewId parent_hwnd, | 175 void OnCreateNewView(const ViewMsg_New_Params& params); |
175 const RendererPreferences& renderer_prefs, | |
176 const WebPreferences& webkit_prefs, | |
177 int32 view_id); | |
178 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 176 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
179 void OnSetCacheCapacities(size_t min_dead_capacity, | 177 void OnSetCacheCapacities(size_t min_dead_capacity, |
180 size_t max_dead_capacity, | 178 size_t max_dead_capacity, |
181 size_t capacity); | 179 size_t capacity); |
182 void OnGetCacheResourceStats(); | 180 void OnGetCacheResourceStats(); |
183 | 181 |
184 // Send all histograms to browser. | 182 // Send all histograms to browser. |
185 void OnGetRendererHistograms(int sequence_number); | 183 void OnGetRendererHistograms(int sequence_number); |
186 | 184 |
187 // Send tcmalloc info to browser. | 185 // Send tcmalloc info to browser. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 base::RepeatingTimer<RenderThread> idle_timer_; | 255 base::RepeatingTimer<RenderThread> idle_timer_; |
258 | 256 |
259 // Same as above, but on a longer timer and will run even if the process is | 257 // Same as above, but on a longer timer and will run even if the process is |
260 // not idle, to ensure that IdleHandle gets called eventually. | 258 // not idle, to ensure that IdleHandle gets called eventually. |
261 base::RepeatingTimer<RenderThread> forced_idle_timer_; | 259 base::RepeatingTimer<RenderThread> forced_idle_timer_; |
262 | 260 |
263 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 261 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
264 }; | 262 }; |
265 | 263 |
266 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 264 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |