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

Unified Diff: webkit/api/src/ChromiumBridge.cpp

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 | « webkit/api/public/WebKitClient.h ('k') | webkit/glue/webkitclient_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/ChromiumBridge.cpp
===================================================================
--- webkit/api/src/ChromiumBridge.cpp (revision 30574)
+++ webkit/api/src/ChromiumBridge.cpp (working copy)
@@ -569,7 +569,7 @@
return webKitClient()->isLinkVisited(visitedLinkHash);
}
-// These are temporary methoeds that the WebKit layer can use to call to the
+// These are temporary methods that the WebKit layer can use to call to the
// Glue layer. Once the Glue layer moves entirely into the WebKit layer, these
// methods will be deleted.
@@ -583,6 +583,11 @@
return webKitClient()->notifyJSOutOfMemory(frame);
}
+int ChromiumBridge::memoryUsageMB()
+{
+ return webKitClient()->memoryUsageMB();
+}
+
int ChromiumBridge::screenDepth(Widget* widget)
{
return webKitClient()->screenDepth(widget);
« no previous file with comments | « webkit/api/public/WebKitClient.h ('k') | webkit/glue/webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698