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

Unified Diff: chrome/common/render_messages_internal.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/render_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_internal.h
===================================================================
--- chrome/common/render_messages_internal.h (revision 28361)
+++ chrome/common/render_messages_internal.h (working copy)
@@ -139,6 +139,12 @@
int /* document_cookie */,
bool /* success */)
+ // Tells the renderer to dump as much memory as it can, perhaps because we
+ // have memory pressure or the renderer is (or will be) paged out. This
+ // should only result in purging objects we can recalculate, e.g. caches or
+ // JS garbage, not in purging irreplaceable objects.
+ IPC_MESSAGE_CONTROL0(ViewMsg_PurgeMemory)
+
// Tells the render view that a ViewHostMsg_ScrollRect message was processed.
// This signals the render view that it can send another ScrollRect message.
IPC_MESSAGE_ROUTED0(ViewMsg_ScrollRect_ACK)
« no previous file with comments | « no previous file | chrome/renderer/render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698