| 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_TRANSACTION_FACTORY_H_ | 5 #ifndef NET_FTP_FTP_TRANSACTION_FACTORY_H_ |
| 6 #define NET_FTP_FTP_TRANSACTION_FACTORY_H_ | 6 #define NET_FTP_FTP_TRANSACTION_FACTORY_H_ |
| 7 | 7 |
| 8 namespace net { | 8 namespace net { |
| 9 | 9 |
| 10 class FtpAuthCache; | |
| 11 class FtpTransaction; | 10 class FtpTransaction; |
| 12 | 11 |
| 13 // An interface to a class that can create FtpTransaction objects. | 12 // An interface to a class that can create FtpTransaction objects. |
| 14 class FtpTransactionFactory { | 13 class FtpTransactionFactory { |
| 15 public: | 14 public: |
| 16 virtual ~FtpTransactionFactory() {} | 15 virtual ~FtpTransactionFactory() {} |
| 17 | 16 |
| 18 // Creates a FtpTransaction object. | 17 // Creates a FtpTransaction object. |
| 19 virtual FtpTransaction* CreateTransaction() = 0; | 18 virtual FtpTransaction* CreateTransaction() = 0; |
| 20 | 19 |
| 21 // Returns the associated FTP auth cache if any (may be NULL). | |
| 22 virtual FtpAuthCache* GetAuthCache() = 0; | |
| 23 | |
| 24 // Suspends the creation of new transactions. If |suspend| is false, creation | 20 // Suspends the creation of new transactions. If |suspend| is false, creation |
| 25 // of new transactions is resumed. | 21 // of new transactions is resumed. |
| 26 virtual void Suspend(bool suspend) = 0; | 22 virtual void Suspend(bool suspend) = 0; |
| 27 }; | 23 }; |
| 28 | 24 |
| 29 } // namespace net | 25 } // namespace net |
| 30 | 26 |
| 31 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_ | 27 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_ |
| OLD | NEW |