Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: net/base/client_socket_pool.h

Issue 118100: Avoid doing concurrent DNS resolves of the same hostname (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get compiling on mac Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/client_socket_pool.h
===================================================================
--- net/base/client_socket_pool.h (revision 18213)
+++ net/base/client_socket_pool.h (working copy)
@@ -17,6 +17,7 @@
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 @@
// 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;

Powered by Google App Engine
This is Rietveld 408576698