| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_FTP_FTP_NETWORK_LAYER_H_ | 5 #ifndef NET_FTP_FTP_NETWORK_LAYER_H_ |
| 6 #define NET_FTP_FTP_NETWORK_LAYER_H_ | 6 #define NET_FTP_FTP_NETWORK_LAYER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "net/base/net_api.h" | 11 #include "net/base/net_export.h" |
| 12 #include "net/ftp/ftp_transaction_factory.h" | 12 #include "net/ftp/ftp_transaction_factory.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 class FtpNetworkSession; | 16 class FtpNetworkSession; |
| 17 class HostResolver; | 17 class HostResolver; |
| 18 | 18 |
| 19 class NET_API FtpNetworkLayer : public FtpTransactionFactory { | 19 class NET_EXPORT FtpNetworkLayer : public FtpTransactionFactory { |
| 20 public: | 20 public: |
| 21 explicit FtpNetworkLayer(HostResolver* host_resolver); | 21 explicit FtpNetworkLayer(HostResolver* host_resolver); |
| 22 virtual ~FtpNetworkLayer(); | 22 virtual ~FtpNetworkLayer(); |
| 23 | 23 |
| 24 static FtpTransactionFactory* CreateFactory(HostResolver* host_resolver); | 24 static FtpTransactionFactory* CreateFactory(HostResolver* host_resolver); |
| 25 | 25 |
| 26 // FtpTransactionFactory methods: | 26 // FtpTransactionFactory methods: |
| 27 virtual FtpTransaction* CreateTransaction() OVERRIDE; | 27 virtual FtpTransaction* CreateTransaction() OVERRIDE; |
| 28 virtual void Suspend(bool suspend) OVERRIDE; | 28 virtual void Suspend(bool suspend) OVERRIDE; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 scoped_refptr<FtpNetworkSession> session_; | 31 scoped_refptr<FtpNetworkSession> session_; |
| 32 bool suspended_; | 32 bool suspended_; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace net | 35 } // namespace net |
| 36 | 36 |
| 37 #endif // NET_FTP_FTP_NETWORK_LAYER_H_ | 37 #endif // NET_FTP_FTP_NETWORK_LAYER_H_ |
| OLD | NEW |