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_TRANSACTION_H_ | 5 #ifndef NET_FTP_FTP_NETWORK_TRANSACTION_H_ |
6 #define NET_FTP_FTP_NETWORK_TRANSACTION_H_ | 6 #define NET_FTP_FTP_NETWORK_TRANSACTION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "net/base/address_list.h" | 16 #include "net/base/address_list.h" |
17 #include "net/base/host_resolver.h" | 17 #include "net/base/host_resolver.h" |
18 #include "net/base/net_log.h" | 18 #include "net/base/net_log.h" |
19 #include "net/base/single_request_host_resolver.h" | 19 #include "net/base/single_request_host_resolver.h" |
20 #include "net/ftp/ftp_ctrl_response_buffer.h" | 20 #include "net/ftp/ftp_ctrl_response_buffer.h" |
21 #include "net/ftp/ftp_response_info.h" | 21 #include "net/ftp/ftp_response_info.h" |
22 #include "net/ftp/ftp_transaction.h" | 22 #include "net/ftp/ftp_transaction.h" |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
26 class ClientSocketFactory; | 26 class ClientSocketFactory; |
27 class FtpNetworkSession; | 27 class FtpNetworkSession; |
28 class StreamSocket; | 28 class StreamSocket; |
29 | 29 |
30 class NET_TEST FtpNetworkTransaction : public FtpTransaction { | 30 class NET_EXPORT_PRIVATE FtpNetworkTransaction : public FtpTransaction { |
31 public: | 31 public: |
32 FtpNetworkTransaction(FtpNetworkSession* session, | 32 FtpNetworkTransaction(FtpNetworkSession* session, |
33 ClientSocketFactory* socket_factory); | 33 ClientSocketFactory* socket_factory); |
34 virtual ~FtpNetworkTransaction(); | 34 virtual ~FtpNetworkTransaction(); |
35 | 35 |
36 virtual int Stop(int error); | 36 virtual int Stop(int error); |
37 virtual int RestartIgnoringLastError(CompletionCallback* callback); | 37 virtual int RestartIgnoringLastError(CompletionCallback* callback); |
38 | 38 |
39 // FtpTransaction methods: | 39 // FtpTransaction methods: |
40 virtual int Start(const FtpRequestInfo* request_info, | 40 virtual int Start(const FtpRequestInfo* request_info, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 244 |
245 scoped_ptr<StreamSocket> ctrl_socket_; | 245 scoped_ptr<StreamSocket> ctrl_socket_; |
246 scoped_ptr<StreamSocket> data_socket_; | 246 scoped_ptr<StreamSocket> data_socket_; |
247 | 247 |
248 State next_state_; | 248 State next_state_; |
249 }; | 249 }; |
250 | 250 |
251 } // namespace net | 251 } // namespace net |
252 | 252 |
253 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ | 253 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |