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

Unified Diff: net/ftp/ftp_network_session.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/ftp/ftp_network_session.h
===================================================================
--- net/ftp/ftp_network_session.h (revision 18213)
+++ net/ftp/ftp_network_session.h (working copy)
@@ -10,14 +10,19 @@
namespace net {
+class HostResolver;
+
// This class holds session objects used by FtpNetworkTransaction objects.
class FtpNetworkSession : public base::RefCounted<FtpNetworkSession> {
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_;
};

Powered by Google App Engine
This is Rietveld 408576698