summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_network_layer.h
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 00:49:38 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 00:49:38 +0000
commit8a00f00ab5d68ffcc998fd04d2ca343af7cdf190 (patch)
treefd464ba49db4271c76c1cf8f769a22120ad631af /net/ftp/ftp_network_layer.h
parent77ae132c1bfdd986228b6f1c0d8c63baa441afdf (diff)
downloadchromium_src-8a00f00ab5d68ffcc998fd04d2ca343af7cdf190.zip
chromium_src-8a00f00ab5d68ffcc998fd04d2ca343af7cdf190.tar.gz
chromium_src-8a00f00ab5d68ffcc998fd04d2ca343af7cdf190.tar.bz2
* 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
Diffstat (limited to 'net/ftp/ftp_network_layer.h')
-rw-r--r--net/ftp/ftp_network_layer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ftp/ftp_network_layer.h b/net/ftp/ftp_network_layer.h
index 71bd3b9..2d37eae 100644
--- a/net/ftp/ftp_network_layer.h
+++ b/net/ftp/ftp_network_layer.h
@@ -12,13 +12,14 @@ namespace net {
class FtpNetworkSession;
class FtpAuthCache;
+class HostResolver;
class FtpNetworkLayer : public FtpTransactionFactory {
public:
- FtpNetworkLayer();
+ explicit FtpNetworkLayer(HostResolver* host_resolver);
~FtpNetworkLayer();
- static FtpTransactionFactory* CreateFactory();
+ static FtpTransactionFactory* CreateFactory(HostResolver* host_resolver);
// FtpTransactionFactory methods:
virtual FtpTransaction* CreateTransaction();