summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_resolver_v8.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_resolver_v8.h')
-rw-r--r--net/proxy/proxy_resolver_v8.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/proxy/proxy_resolver_v8.h b/net/proxy/proxy_resolver_v8.h
index c6dbdd4..76ec725 100644
--- a/net/proxy/proxy_resolver_v8.h
+++ b/net/proxy/proxy_resolver_v8.h
@@ -94,6 +94,16 @@ class NET_EXPORT_PRIVATE ProxyResolverV8 : public ProxyResolver {
// Remember the default Isolate, must be called from the main thread. This
// hack can be removed when the "default Isolate" concept is gone.
static void RememberDefaultIsolate();
+
+#if defined(OS_WIN)
+ // Create an isolate to use for the proxy resolver. Until the "default
+ // Isolate" concept is gone, it is preferable to invoke
+ // RememberDefaultIsolate() as creating a new Isolate in additional to the
+ // default Isolate will waste a few MB of memory and the runtime it took to
+ // create the default Isolate.
+ static void CreateIsolate();
+#endif
+
static v8::Isolate* GetDefaultIsolate();
// Get total/ued heap memory usage of all v8 instances used by the proxy