summaryrefslogtreecommitdiffstats
path: root/webkit/api/public/WebKitClient.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-02 17:54:34 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-02 17:54:34 +0000
commit1421207f89748c1c1cd0ed7240d4dfd1a0efc7f6 (patch)
treed8dda3094fcb311b260fe474cea3a0d8a0ac1e5e /webkit/api/public/WebKitClient.h
parentdf6da1505fc09b8edb5a22e8455e30b112dd7ea8 (diff)
downloadchromium_src-1421207f89748c1c1cd0ed7240d4dfd1a0efc7f6.zip
chromium_src-1421207f89748c1c1cd0ed7240d4dfd1a0efc7f6.tar.gz
chromium_src-1421207f89748c1c1cd0ed7240d4dfd1a0efc7f6.tar.bz2
Expose a method to access amount of memory used by the current process.
Patch by Anton Muhin R=darin BUG=none TEST=none Review URL: http://codereview.chromium.org/345040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api/public/WebKitClient.h')
-rw-r--r--webkit/api/public/WebKitClient.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/api/public/WebKitClient.h b/webkit/api/public/WebKitClient.h
index a489d04..7301563 100644
--- a/webkit/api/public/WebKitClient.h
+++ b/webkit/api/public/WebKitClient.h
@@ -162,6 +162,14 @@ namespace WebKit {
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 size_t memoryUsageMB() = 0;
+
+
// Message Ports -------------------------------------------------------
// Creates a Message Port Channel. This can be called on any thread.