diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 19:21:10 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 19:21:10 +0000 |
commit | b3764212576419eee2fe5b2b1c43d5aef28954a8 (patch) | |
tree | c59c39e8201d08f1fa4b417833b859ea909066fb /net/proxy/proxy_resolver_js_bindings.cc | |
parent | b5edb847c268532709058074328dd5565b7d9e7e (diff) | |
download | chromium_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_js_bindings.cc')
-rw-r--r-- | net/proxy/proxy_resolver_js_bindings.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/proxy/proxy_resolver_js_bindings.cc b/net/proxy/proxy_resolver_js_bindings.cc index 3bf1bad..08a7fe7 100644 --- a/net/proxy/proxy_resolver_js_bindings.cc +++ b/net/proxy/proxy_resolver_js_bindings.cc @@ -110,8 +110,12 @@ class DefaultJSBindings : public ProxyResolverJSBindings { LOG(INFO) << "PAC-error: " << "line: " << line_number << ": " << message; } + virtual void Shutdown() { + host_resolver_->Shutdown(); + } + private: - // Helper to execute a syncrhonous DNS resolve, using the per-request + // Helper to execute a synchronous DNS resolve, using the per-request // DNS cache if there is one. int DnsResolveHelper(const HostResolver::RequestInfo& info, AddressList* address_list) { |