diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 03:32:00 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 03:32:00 +0000 |
commit | 61b84d5d212129231137839524448b6205f7e097 (patch) | |
tree | 474727da6d37d02dac29dffb5edc192be0864a79 /net/proxy/proxy_resolver_js_bindings.h | |
parent | edf769c871dd82fe83becdc115fcf96aa601f646 (diff) | |
download | chromium_src-61b84d5d212129231137839524448b6205f7e097.zip chromium_src-61b84d5d212129231137839524448b6205f7e097.tar.gz chromium_src-61b84d5d212129231137839524448b6205f7e097.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@51924 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_resolver_js_bindings.h')
-rw-r--r-- | net/proxy/proxy_resolver_js_bindings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/proxy/proxy_resolver_js_bindings.h b/net/proxy/proxy_resolver_js_bindings.h index 834ea73..b5912c4 100644 --- a/net/proxy/proxy_resolver_js_bindings.h +++ b/net/proxy/proxy_resolver_js_bindings.h @@ -54,6 +54,9 @@ class ProxyResolverJSBindings { // if a line number is not applicable to this error. virtual void OnError(int line_number, const string16& error) = 0; + // Called before the thread running the proxy resolver is stopped. + virtual void Shutdown() = 0; + // Creates a default javascript bindings implementation that will: // - Send script error messages to LOG(INFO) // - Send script alert()s to LOG(INFO) |