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

Unified Diff: net/proxy/proxy_resolver_v8.h

Issue 12398007: Replaced deprecated v8 API calls by their non-deprecated counterparts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « content/renderer/browser_plugin/browser_plugin.cc ('k') | net/proxy/proxy_resolver_v8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_resolver_v8.h
diff --git a/net/proxy/proxy_resolver_v8.h b/net/proxy/proxy_resolver_v8.h
index 3adc672a1ffebdb9db891e255f06fd25c704406a..4b5760b41f2c011ce59daf93a29757f84158adca 100644
--- a/net/proxy/proxy_resolver_v8.h
+++ b/net/proxy/proxy_resolver_v8.h
@@ -11,6 +11,7 @@
#include "net/proxy/proxy_resolver.h"
namespace v8 {
+class HeapStatistics;
class Isolate;
} // namespace v8
@@ -95,6 +96,11 @@ class NET_EXPORT_PRIVATE ProxyResolverV8 : public ProxyResolver {
static void RememberDefaultIsolate();
static v8::Isolate* GetDefaultIsolate();
+ // Get total/ued heap memory usage of all v8 instances used by the proxy
+ // resolver.
+ static size_t GetTotalHeapSize();
+ static size_t GetUsedHeapSize();
+
private:
static v8::Isolate* g_default_isolate_;
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | net/proxy/proxy_resolver_v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698