Roll src/third_party/WebKit 8121bc6:918aba1 (svn 188871:188878)
[chromium-blink-merge.git] / net / ftp / ftp_transaction_factory.h
blobdb32fbeeac5b1907cf8cf466c3aa7a60b47012f2
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
3 // found in the LICENSE file.
5 #ifndef NET_FTP_FTP_TRANSACTION_FACTORY_H_
6 #define NET_FTP_FTP_TRANSACTION_FACTORY_H_
8 #include "net/base/net_export.h"
10 namespace net {
12 class FtpTransaction;
14 // An interface to a class that can create FtpTransaction objects.
15 class NET_EXPORT FtpTransactionFactory {
16 public:
17 virtual ~FtpTransactionFactory() {}
19 // Creates a FtpTransaction object.
20 virtual FtpTransaction* CreateTransaction() = 0;
22 // Suspends the creation of new transactions. If |suspend| is false, creation
23 // of new transactions is resumed.
24 virtual void Suspend(bool suspend) = 0;
27 } // namespace net
29 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_