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 3 // LICENSE file. 4 5 #ifndef NET_FTP_FTP_TRANSACTION_FACTORY_H_ 6 #define NET_FTP_FTP_TRANSACTION_FACTORY_H_ 7 8 namespace net { 9 10 class FtpTransaction; 11 12 // An interface to a class that can create FtpTransaction objects. 13 class FtpTransactionFactory { 14 public: ~FtpTransactionFactory()15 virtual ~FtpTransactionFactory() {} 16 17 // Creates a FtpTransaction object. 18 virtual FtpTransaction* CreateTransaction() = 0; 19 20 // Suspends the creation of new transactions. If |suspend| is false, creation 21 // of new transactions is resumed. 22 virtual void Suspend(bool suspend) = 0; 23 }; 24 25 } // namespace net 26 27 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_ 28