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

Unified Diff: webkit/api/public/WebKitClient.h

Issue 332010: Expose a method to access amount of memory used by the current process. (Closed) Base URL: http://src.chromium.org/svn/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 | webkit/api/src/ChromiumBridge.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebKitClient.h
===================================================================
--- webkit/api/public/WebKitClient.h (revision 30574)
+++ webkit/api/public/WebKitClient.h (working copy)
@@ -159,6 +159,14 @@
const WebKit::WebString& challenge,
const WebKit::WebURL& url) = 0;
+
+ // Memory --------------------------------------------------------------
+
+ // Returns the current space allocated for the pagefile, in MB.
+ // That is committed size for Windows and virtual memory size for POSIX
+ virtual int memoryUsageMB() = 0;
+
+
// Message Ports -------------------------------------------------------
// Creates a Message Port Channel. This can be called on any thread.
« no previous file with comments | « no previous file | webkit/api/src/ChromiumBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698