| 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_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 #include "net/base/net_api.h" | 9 #include "net/base/net_export.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 class FtpTransaction; | 13 class FtpTransaction; |
| 14 | 14 |
| 15 // An interface to a class that can create FtpTransaction objects. | 15 // An interface to a class that can create FtpTransaction objects. |
| 16 class NET_API FtpTransactionFactory { | 16 class NET_EXPORT FtpTransactionFactory { |
| 17 public: | 17 public: |
| 18 virtual ~FtpTransactionFactory() {} | 18 virtual ~FtpTransactionFactory() {} |
| 19 | 19 |
| 20 // Creates a FtpTransaction object. | 20 // Creates a FtpTransaction object. |
| 21 virtual FtpTransaction* CreateTransaction() = 0; | 21 virtual FtpTransaction* CreateTransaction() = 0; |
| 22 | 22 |
| 23 // Suspends the creation of new transactions. If |suspend| is false, creation | 23 // Suspends the creation of new transactions. If |suspend| is false, creation |
| 24 // of new transactions is resumed. | 24 // of new transactions is resumed. |
| 25 virtual void Suspend(bool suspend) = 0; | 25 virtual void Suspend(bool suspend) = 0; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace net | 28 } // namespace net |
| 29 | 29 |
| 30 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_ | 30 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_ |
| OLD | NEW |