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 |
11 #include "app/gfx/native_widget_types.h" | 11 #include "app/gfx/native_widget_types.h" |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/task.h" | 14 #include "base/task.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "chrome/common/child_thread.h" | 16 #include "chrome/common/child_thread.h" |
17 #include "chrome/common/css_colors.h" | 17 #include "chrome/common/css_colors.h" |
18 #include "chrome/common/dom_storage_type.h" | 18 #include "chrome/common/dom_storage_type.h" |
19 #include "chrome/renderer/renderer_histogram_snapshots.h" | 19 #include "chrome/renderer/renderer_histogram_snapshots.h" |
20 #include "chrome/renderer/visitedlink_slave.h" | 20 #include "chrome/renderer/visitedlink_slave.h" |
21 #include "ipc/ipc_platform_file.h" | |
22 | 21 |
23 class AppCacheDispatcher; | 22 class AppCacheDispatcher; |
24 class DBMessageFilter; | 23 class DBMessageFilter; |
25 class DevToolsAgentFilter; | 24 class DevToolsAgentFilter; |
26 class FilePath; | 25 class FilePath; |
27 class ListValue; | 26 class ListValue; |
28 class NullableString16; | 27 class NullableString16; |
29 class RenderDnsMaster; | 28 class RenderDnsMaster; |
30 class RendererHistogram; | 29 class RendererHistogram; |
31 class RendererWebDatabaseObserver; | 30 class RendererWebDatabaseObserver; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // Send tcmalloc info to browser. | 193 // Send tcmalloc info to browser. |
195 void OnGetRendererTcmalloc(); | 194 void OnGetRendererTcmalloc(); |
196 void OnGetV8HeapStats(); | 195 void OnGetV8HeapStats(); |
197 | 196 |
198 void OnExtensionMessageInvoke(const std::string& function_name, | 197 void OnExtensionMessageInvoke(const std::string& function_name, |
199 const ListValue& args); | 198 const ListValue& args); |
200 void OnPurgeMemory(); | 199 void OnPurgeMemory(); |
201 void OnPurgePluginListCache(bool reload_pages); | 200 void OnPurgePluginListCache(bool reload_pages); |
202 | 201 |
203 #if defined(SPELLCHECKER_IN_RENDERER) | 202 #if defined(SPELLCHECKER_IN_RENDERER) |
204 void OnInitSpellChecker(IPC::PlatformFileForTransit bdict_file, | 203 void OnInitSpellChecker(const base::FileDescriptor& bdict_fd, |
205 const std::vector<std::string>& custom_words, | 204 const std::vector<std::string>& custom_words, |
206 const std::string& language, | 205 const std::string& language, |
207 bool auto_spell_correct); | 206 bool auto_spell_correct); |
208 void OnSpellCheckWordAdded(const std::string& word); | 207 void OnSpellCheckWordAdded(const std::string& word); |
209 void OnSpellCheckEnableAutoSpellCorrect(bool enable); | 208 void OnSpellCheckEnableAutoSpellCorrect(bool enable); |
210 #endif | 209 #endif |
211 | 210 |
212 // Gather usage statistics from the in-memory cache and inform our host. | 211 // Gather usage statistics from the in-memory cache and inform our host. |
213 // These functions should be call periodically so that the host can make | 212 // These functions should be call periodically so that the host can make |
214 // decisions about how to allocation resources using current information. | 213 // decisions about how to allocation resources using current information. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // The count of hidden RenderWidgets running through this thread. | 255 // The count of hidden RenderWidgets running through this thread. |
257 int hidden_widget_count_; | 256 int hidden_widget_count_; |
258 | 257 |
259 // The current value of the idle notification timer delay. | 258 // The current value of the idle notification timer delay. |
260 double idle_notification_delay_in_s_; | 259 double idle_notification_delay_in_s_; |
261 | 260 |
262 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 261 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
263 }; | 262 }; |
264 | 263 |
265 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 264 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |