| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // LICENSE file. | 3 // found in the 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 class FtpTransaction; | 11 class FtpTransaction; |
| 12 | 12 |
| 13 // An interface to a class that can create FtpTransaction objects. | 13 // An interface to a class that can create FtpTransaction objects. |
| 14 class FtpTransactionFactory { | 14 class FtpTransactionFactory { |
| 15 public: | 15 public: |
| 16 virtual ~FtpTransactionFactory() {} | 16 virtual ~FtpTransactionFactory() {} |
| 17 | 17 |
| 18 // Creates a FtpTransaction object. | 18 // Creates a FtpTransaction object. |
| 19 virtual FtpTransaction* CreateTransaction() = 0; | 19 virtual FtpTransaction* CreateTransaction() = 0; |
| 20 | 20 |
| 21 // Suspends the creation of new transactions. If |suspend| is false, creation | 21 // Suspends the creation of new transactions. If |suspend| is false, creation |
| 22 // of new transactions is resumed. | 22 // of new transactions is resumed. |
| 23 virtual void Suspend(bool suspend) = 0; | 23 virtual void Suspend(bool suspend) = 0; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namespace net | 26 } // namespace net |
| 27 | 27 |
| 28 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_ | 28 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_ |
| OLD | NEW |