summaryrefslogtreecommitdiffstats
path: root/net/proxy/sync_host_resolver_bridge.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/sync_host_resolver_bridge.cc')
-rw-r--r--net/proxy/sync_host_resolver_bridge.cc15
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