| 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 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void OnSetCacheCapacities(size_t min_dead_capacity, | 167 void OnSetCacheCapacities(size_t min_dead_capacity, |
| 168 size_t max_dead_capacity, | 168 size_t max_dead_capacity, |
| 169 size_t capacity); | 169 size_t capacity); |
| 170 void OnGetCacheResourceStats(); | 170 void OnGetCacheResourceStats(); |
| 171 | 171 |
| 172 // Send all histograms to browser. | 172 // Send all histograms to browser. |
| 173 void OnGetRendererHistograms(int sequence_number); | 173 void OnGetRendererHistograms(int sequence_number); |
| 174 | 174 |
| 175 void OnExtensionMessageInvoke(const std::string& function_name, | 175 void OnExtensionMessageInvoke(const std::string& function_name, |
| 176 const ListValue& args); | 176 const ListValue& args); |
| 177 void OnPurgeMemory(); |
| 177 void OnPurgePluginListCache(bool reload_pages); | 178 void OnPurgePluginListCache(bool reload_pages); |
| 178 | 179 |
| 179 // Gather usage statistics from the in-memory cache and inform our host. | 180 // Gather usage statistics from the in-memory cache and inform our host. |
| 180 // These functions should be call periodically so that the host can make | 181 // These functions should be call periodically so that the host can make |
| 181 // decisions about how to allocation resources using current information. | 182 // decisions about how to allocation resources using current information. |
| 182 void InformHostOfCacheStats(); | 183 void InformHostOfCacheStats(); |
| 183 | 184 |
| 184 // We initialize WebKit as late as possible. | 185 // We initialize WebKit as late as possible. |
| 185 void EnsureWebKitInitialized(); | 186 void EnsureWebKitInitialized(); |
| 186 | 187 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 217 // The count of hidden RenderWidgets running through this thread. | 218 // The count of hidden RenderWidgets running through this thread. |
| 218 int hidden_widget_count_; | 219 int hidden_widget_count_; |
| 219 | 220 |
| 220 // The current value of the idle notification timer delay. | 221 // The current value of the idle notification timer delay. |
| 221 double idle_notification_delay_in_s_; | 222 double idle_notification_delay_in_s_; |
| 222 | 223 |
| 223 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 224 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 227 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |