blob: 9a0f0210105f32763cd372303a74eb8fd09c9fd0 (
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) 2008 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/ref_counted.h"
#include "net/ftp/ftp_transaction_factory.h"
namespace net {
class FtpNetworkSession;
class FtpAuthCache;
class HostResolver;
class FtpNetworkLayer : public FtpTransactionFactory {
public:
explicit FtpNetworkLayer(HostResolver* host_resolver);
~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_
|