blob: de55192a4a89500e43ad24c5161b51cd47cf28c8 (
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
31
32
33
34
35
36
|
// 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_NETWORK_LAYER_H_
#define NET_FTP_FTP_NETWORK_LAYER_H_
#pragma once
#include "base/memory/ref_counted.h"
#include "net/base/net_api.h"
#include "net/ftp/ftp_transaction_factory.h"
namespace net {
class FtpNetworkSession;
class HostResolver;
class NET_API FtpNetworkLayer : public FtpTransactionFactory {
public:
explicit FtpNetworkLayer(HostResolver* host_resolver);
virtual ~FtpNetworkLayer();
static FtpTransactionFactory* CreateFactory(HostResolver* host_resolver);
// FtpTransactionFactory methods:
virtual FtpTransaction* CreateTransaction();
virtual void Suspend(bool suspend);
private:
scoped_refptr<FtpNetworkSession> session_;
bool suspended_;
};
} // namespace net
#endif // NET_FTP_FTP_NETWORK_LAYER_H_
|