blob: d4bfe46e5fa64dfa18397f4c7423f1d3646a2f70 [file] [log] [blame]
// 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/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "net/base/net_export.h"
#include "net/ftp/ftp_transaction_factory.h"
namespace net {
class FtpNetworkSession;
class HostResolver;
class NET_EXPORT FtpNetworkLayer : public FtpTransactionFactory {
public:
explicit FtpNetworkLayer(HostResolver* host_resolver);
virtual ~FtpNetworkLayer();
static FtpTransactionFactory* CreateFactory(HostResolver* host_resolver);
// FtpTransactionFactory methods:
virtual FtpTransaction* CreateTransaction() OVERRIDE;
virtual void Suspend(bool suspend) OVERRIDE;
private:
scoped_refptr<FtpNetworkSession> session_;
bool suspended_;
};
} // namespace net
#endif // NET_FTP_FTP_NETWORK_LAYER_H_