Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1414)

Side by Side Diff: chrome/renderer/render_thread.h

Issue 267021: Add functionality to the renderer thread to purge memory. Not yet called.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698