diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 21:10:27 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 21:10:27 +0000 |
commit | 0007f1434eafa4e955ff916d50a7a39fd850d435 (patch) | |
tree | 278dca04911fbefee519ac7ab449d208f4938a3d /net/proxy/sync_host_resolver_bridge.cc | |
parent | 41c9921ad0ffa548263262477777e865cd85b144 (diff) | |
download | chromium_src-0007f1434eafa4e955ff916d50a7a39fd850d435.zip chromium_src-0007f1434eafa4e955ff916d50a7a39fd850d435.tar.gz chromium_src-0007f1434eafa4e955ff916d50a7a39fd850d435.tar.bz2 |
Revert 51877, since SpdyNetworkTransactionTest.CorruptFrameSessionError started failing after this check-in (but only on vista modules builder).
BUG=48588
Original CL description:
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
TBR=eroman@chromium.org
Review URL: http://codereview.chromium.org/2945004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/sync_host_resolver_bridge.cc')
-rw-r--r-- | net/proxy/sync_host_resolver_bridge.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/proxy/sync_host_resolver_bridge.cc b/net/proxy/sync_host_resolver_bridge.cc index 6c62c7d..caf4549 100644 --- a/net/proxy/sync_host_resolver_bridge.cc +++ b/net/proxy/sync_host_resolver_bridge.cc @@ -188,4 +188,19 @@ void SyncHostResolverBridge::Shutdown() { core_->Shutdown(); } +// SingleThreadedProxyResolverUsingBridgedHostResolver ----------------------- + +SingleThreadedProxyResolverUsingBridgedHostResolver:: +SingleThreadedProxyResolverUsingBridgedHostResolver( + ProxyResolver* proxy_resolver, + SyncHostResolverBridge* bridged_host_resolver) + : SingleThreadedProxyResolver(proxy_resolver), + bridged_host_resolver_(bridged_host_resolver) { +} + +SingleThreadedProxyResolverUsingBridgedHostResolver:: +~SingleThreadedProxyResolverUsingBridgedHostResolver() { + bridged_host_resolver_->Shutdown(); +} + } // namespace net |