From 8a00f00ab5d68ffcc998fd04d2ca343af7cdf190 Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Fri, 12 Jun 2009 00:49:38 +0000 Subject: * Avoid doing concurrent DNS resolves of the same hostname in HostResolver. * Add a 1 minute cache for host resolves. * Refactor HostResolver to handle multiple requests. * Make HostResolver a dependency of URLRequestContext. operate the HostResolver in async mode for proxy resolver (bridging to IO thread). TEST=unittests BUG=13163 Review URL: http://codereview.chromium.org/118100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18236 0039d316-1c4b-4281-b951-d872f2087c98 --- net/ftp/ftp_network_session.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'net/ftp/ftp_network_session.h') diff --git a/net/ftp/ftp_network_session.h b/net/ftp/ftp_network_session.h index 13ab216..29c34d2 100644 --- a/net/ftp/ftp_network_session.h +++ b/net/ftp/ftp_network_session.h @@ -10,14 +10,19 @@ namespace net { +class HostResolver; + // This class holds session objects used by FtpNetworkTransaction objects. class FtpNetworkSession : public base::RefCounted { public: - FtpNetworkSession() {} + explicit FtpNetworkSession(HostResolver* host_resolver) + : host_resolver_(host_resolver) {} + HostResolver* host_resolver() { return host_resolver_; } FtpAuthCache* auth_cache() { return &auth_cache_; } private: + HostResolver* host_resolver_; FtpAuthCache auth_cache_; }; -- cgit v1.1