Roll src/third_party/WebKit 8121bc6:918aba1 (svn 188871:188878)
[chromium-blink-merge.git] / net / ftp / ftp_network_layer.h
blobf174df9fa477145d2267ff47c09385ab2604a12e
1 // Copyright (c) 2012 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_NETWORK_LAYER_H_
6 #define NET_FTP_FTP_NETWORK_LAYER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h"
11 #include "net/base/net_export.h"
12 #include "net/ftp/ftp_transaction_factory.h"
14 namespace net {
16 class FtpNetworkSession;
17 class HostResolver;
19 class NET_EXPORT FtpNetworkLayer : public FtpTransactionFactory {
20 public:
21 explicit FtpNetworkLayer(HostResolver* host_resolver);
22 ~FtpNetworkLayer() override;
24 static FtpTransactionFactory* CreateFactory(HostResolver* host_resolver);
26 // FtpTransactionFactory methods:
27 FtpTransaction* CreateTransaction() override;
28 void Suspend(bool suspend) override;
30 private:
31 scoped_refptr<FtpNetworkSession> session_;
32 bool suspended_;
33 DISALLOW_COPY_AND_ASSIGN(FtpNetworkLayer);
36 } // namespace net
38 #endif // NET_FTP_FTP_NETWORK_LAYER_H_