summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_transaction_factory.h
blob: 6b7cdb932128992126ea8c8ceff0bc5dbee086f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_FTP_FTP_TRANSACTION_FACTORY_H_
#define NET_FTP_FTP_TRANSACTION_FACTORY_H_

#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"

namespace net {

class FtpTransaction;

// An interface to a class that can create FtpTransaction objects.
class NET_EXPORT FtpTransactionFactory {
 public:
  virtual ~FtpTransactionFactory() {}

  // Creates a FtpTransaction object.
  virtual scoped_ptr<FtpTransaction> CreateTransaction() = 0;

  // Suspends the creation of new transactions. If |suspend| is false, creation
  // of new transactions is resumed.
  virtual void Suspend(bool suspend) = 0;
};

}  // namespace net

#endif  // NET_FTP_FTP_TRANSACTION_FACTORY_H_