| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "net/base/net_api.h" | 10 #include "net/base/net_export.h" |
| 11 #include "net/ftp/ftp_auth_cache.h" | 11 #include "net/ftp/ftp_auth_cache.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 class HostResolver; | 15 class HostResolver; |
| 16 | 16 |
| 17 // This class holds session objects used by FtpNetworkTransaction objects. | 17 // This class holds session objects used by FtpNetworkTransaction objects. |
| 18 class NET_TEST FtpNetworkSession : public base::RefCounted<FtpNetworkSession> { | 18 class NET_EXPORT_PRIVATE FtpNetworkSession |
| 19 : public base::RefCounted<FtpNetworkSession> { |
| 19 public: | 20 public: |
| 20 explicit FtpNetworkSession(HostResolver* host_resolver); | 21 explicit FtpNetworkSession(HostResolver* host_resolver); |
| 21 | 22 |
| 22 HostResolver* host_resolver() { return host_resolver_; } | 23 HostResolver* host_resolver() { return host_resolver_; } |
| 23 FtpAuthCache* auth_cache() { return &auth_cache_; } | 24 FtpAuthCache* auth_cache() { return &auth_cache_; } |
| 24 | 25 |
| 25 private: | 26 private: |
| 26 friend class base::RefCounted<FtpNetworkSession>; | 27 friend class base::RefCounted<FtpNetworkSession>; |
| 27 | 28 |
| 28 virtual ~FtpNetworkSession(); | 29 virtual ~FtpNetworkSession(); |
| 29 | 30 |
| 30 HostResolver* const host_resolver_; | 31 HostResolver* const host_resolver_; |
| 31 FtpAuthCache auth_cache_; | 32 FtpAuthCache auth_cache_; |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 } // namespace net | 35 } // namespace net |
| 35 | 36 |
| 36 #endif // NET_FTP_FTP_NETWORK_SESSION_H_ | 37 #endif // NET_FTP_FTP_NETWORK_SESSION_H_ |
| OLD | NEW |