| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_LAYER_H_ | 5 #ifndef NET_FTP_FTP_NETWORK_LAYER_H_ |
| 6 #define NET_FTP_FTP_NETWORK_LAYER_H_ | 6 #define NET_FTP_FTP_NETWORK_LAYER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "net/ftp/ftp_transaction_factory.h" | 10 #include "net/ftp/ftp_transaction_factory.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 class FtpNetworkSession; | 14 class FtpNetworkSession; |
| 15 class FtpAuthCache; | |
| 16 class HostResolver; | 15 class HostResolver; |
| 17 | 16 |
| 18 class FtpNetworkLayer : public FtpTransactionFactory { | 17 class FtpNetworkLayer : public FtpTransactionFactory { |
| 19 public: | 18 public: |
| 20 explicit FtpNetworkLayer(HostResolver* host_resolver); | 19 explicit FtpNetworkLayer(HostResolver* host_resolver); |
| 21 ~FtpNetworkLayer(); | 20 ~FtpNetworkLayer(); |
| 22 | 21 |
| 23 static FtpTransactionFactory* CreateFactory(HostResolver* host_resolver); | 22 static FtpTransactionFactory* CreateFactory(HostResolver* host_resolver); |
| 24 | 23 |
| 25 // FtpTransactionFactory methods: | 24 // FtpTransactionFactory methods: |
| 26 virtual FtpTransaction* CreateTransaction(); | 25 virtual FtpTransaction* CreateTransaction(); |
| 27 virtual void Suspend(bool suspend); | 26 virtual void Suspend(bool suspend); |
| 28 | 27 |
| 29 private: | 28 private: |
| 30 scoped_refptr<FtpNetworkSession> session_; | 29 scoped_refptr<FtpNetworkSession> session_; |
| 31 bool suspended_; | 30 bool suspended_; |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 } // namespace net | 33 } // namespace net |
| 35 | 34 |
| 36 #endif // NET_FTP_FTP_NETWORK_LAYER_H_ | 35 #endif // NET_FTP_FTP_NETWORK_LAYER_H_ |
| OLD | NEW |