summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_resolver_v8.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-08 19:21:10 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-08 19:21:10 +0000
commitb3764212576419eee2fe5b2b1c43d5aef28954a8 (patch)
treec59c39e8201d08f1fa4b417833b859ea909066fb /net/proxy/proxy_resolver_v8.cc
parentb5edb847c268532709058074328dd5565b7d9e7e (diff)
downloadchromium_src-b3764212576419eee2fe5b2b1c43d5aef28954a8.zip
chromium_src-b3764212576419eee2fe5b2b1c43d5aef28954a8.tar.gz
chromium_src-b3764212576419eee2fe5b2b1c43d5aef28954a8.tar.bz2
Add the capability to run multiple proxy PAC scripts in parallel.
Refactors SingleThreadedProxyResolver into MultiThreadedProxyResolver. New threads are created lazily on demand, up to a fixed maximum. Note that this CL does NOT change the policy in Chrome -- it will continue to use a single thread for proxy resolving, but using the new code to do so. BUG=11079 Review URL: http://codereview.chromium.org/2822043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_resolver_v8.cc')
-rw-r--r--net/proxy/proxy_resolver_v8.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/proxy/proxy_resolver_v8.cc b/net/proxy/proxy_resolver_v8.cc
index 5860872..4a47b345 100644
--- a/net/proxy/proxy_resolver_v8.cc
+++ b/net/proxy/proxy_resolver_v8.cc
@@ -640,6 +640,10 @@ void ProxyResolverV8::PurgeMemory() {
context_->PurgeMemory();
}
+void ProxyResolverV8::Shutdown() {
+ js_bindings_->Shutdown();
+}
+
int ProxyResolverV8::SetPacScript(const GURL& /*url*/,
const string16& pac_script,
CompletionCallback* /*callback*/) {