summaryrefslogtreecommitdiffstats
path: root/net/base/client_socket_pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/client_socket_pool.h')
-rw-r--r--net/base/client_socket_pool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/client_socket_pool.h b/net/base/client_socket_pool.h
index 599b7a9..6d200c0 100644
--- a/net/base/client_socket_pool.h
+++ b/net/base/client_socket_pool.h
@@ -17,6 +17,7 @@ namespace net {
class ClientSocket;
class ClientSocketHandle;
+class HostResolver;
// A ClientSocketPool is used to restrict the number of sockets open at a time.
// It also maintains a list of idle persistent sockets.
@@ -69,6 +70,9 @@ class ClientSocketPool : public base::RefCounted<ClientSocketPool> {
// Called to close any idle connections held by the connection manager.
virtual void CloseIdleSockets() = 0;
+ // Returns the HostResolver that will be used for host lookups.
+ virtual HostResolver* GetHostResolver() const = 0;
+
// The total number of idle sockets in the pool.
virtual int idle_socket_count() const = 0;