| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_FTP_FTP_NETWORK_SESSION_H_ | 5 #ifndef NET_FTP_FTP_NETWORK_SESSION_H_ |
| 6 #define NET_FTP_FTP_NETWORK_SESSION_H_ | 6 #define NET_FTP_FTP_NETWORK_SESSION_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 #include "net/ftp/ftp_auth_cache.h" |
| 10 | 11 |
| 11 namespace net { | 12 namespace net { |
| 12 | 13 |
| 13 class HostResolver; | 14 class HostResolver; |
| 14 | 15 |
| 15 // This class holds session objects used by FtpNetworkTransaction objects. | 16 // This class holds session objects used by FtpNetworkTransaction objects. |
| 16 class NET_EXPORT_PRIVATE FtpNetworkSession | 17 class NET_EXPORT_PRIVATE FtpNetworkSession |
| 17 : public base::RefCounted<FtpNetworkSession> { | 18 : public base::RefCounted<FtpNetworkSession> { |
| 18 public: | 19 public: |
| 19 explicit FtpNetworkSession(HostResolver* host_resolver); | 20 explicit FtpNetworkSession(HostResolver* host_resolver); |
| 20 | 21 |
| 21 HostResolver* host_resolver() { return host_resolver_; } | 22 HostResolver* host_resolver() { return host_resolver_; } |
| 23 FtpAuthCache* auth_cache() { return &auth_cache_; } |
| 22 | 24 |
| 23 private: | 25 private: |
| 24 friend class base::RefCounted<FtpNetworkSession>; | 26 friend class base::RefCounted<FtpNetworkSession>; |
| 25 | 27 |
| 26 virtual ~FtpNetworkSession(); | 28 virtual ~FtpNetworkSession(); |
| 27 | 29 |
| 28 HostResolver* const host_resolver_; | 30 HostResolver* const host_resolver_; |
| 31 FtpAuthCache auth_cache_; |
| 29 }; | 32 }; |
| 30 | 33 |
| 31 } // namespace net | 34 } // namespace net |
| 32 | 35 |
| 33 #endif // NET_FTP_FTP_NETWORK_SESSION_H_ | 36 #endif // NET_FTP_FTP_NETWORK_SESSION_H_ |
| OLD | NEW |