| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // 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 | 7 |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "net/ftp/ftp_transaction_factory.h" | 9 #include "net/ftp/ftp_transaction_factory.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 class FtpNetworkSession; | 13 class FtpNetworkSession; |
| 14 class FtpAuthCache; |
| 14 | 15 |
| 15 class FtpNetworkLayer : public FtpTransactionFactory { | 16 class FtpNetworkLayer : public FtpTransactionFactory { |
| 16 public: | 17 public: |
| 17 FtpNetworkLayer(); | 18 FtpNetworkLayer(); |
| 18 ~FtpNetworkLayer(); | 19 ~FtpNetworkLayer(); |
| 19 | 20 |
| 21 static FtpTransactionFactory* CreateFactory(); |
| 22 |
| 20 // FtpTransactionFactory methods: | 23 // FtpTransactionFactory methods: |
| 21 virtual FtpTransaction* CreateTransaction(); | 24 virtual FtpTransaction* CreateTransaction(); |
| 22 virtual FtpAuthCache* GetAuthCache(); | |
| 23 virtual void Suspend(bool suspend); | 25 virtual void Suspend(bool suspend); |
| 24 | 26 |
| 25 private: | 27 private: |
| 26 scoped_refptr<FtpNetworkSession> session_; | 28 scoped_refptr<FtpNetworkSession> session_; |
| 27 bool suspended_; | 29 bool suspended_; |
| 28 }; | 30 }; |
| 29 | 31 |
| 30 } // namespace net | 32 } // namespace net |
| 31 | 33 |
| 32 #endif // NET_FTP_FTP_NETWORK_LAYER_H_ | 34 #endif // NET_FTP_FTP_NETWORK_LAYER_H_ |
| OLD | NEW |