| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 bool use_epsv_; | 241 bool use_epsv_; |
| 242 | 242 |
| 243 AuthCredentials credentials_; | 243 AuthCredentials credentials_; |
| 244 | 244 |
| 245 // Current directory on the remote server, as returned by last PWD command, | 245 // Current directory on the remote server, as returned by last PWD command, |
| 246 // with any trailing slash removed. | 246 // with any trailing slash removed. |
| 247 std::string current_remote_directory_; | 247 std::string current_remote_directory_; |
| 248 | 248 |
| 249 uint16_t data_connection_port_; | 249 uint16_t data_connection_port_; |
| 250 | 250 |
| 251 ClientSocketFactory* socket_factory_; | 251 ClientSocketFactory* const socket_factory_; |
| 252 | 252 |
| 253 std::unique_ptr<StreamSocket> ctrl_socket_; | 253 std::unique_ptr<StreamSocket> ctrl_socket_; |
| 254 std::unique_ptr<StreamSocket> data_socket_; | 254 std::unique_ptr<StreamSocket> data_socket_; |
| 255 | 255 |
| 256 State next_state_; | 256 State next_state_; |
| 257 | 257 |
| 258 // State to switch to after data connection is complete. | 258 // State to switch to after data connection is complete. |
| 259 State state_after_data_connect_complete_; | 259 State state_after_data_connect_complete_; |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namespace net | 262 } // namespace net |
| 263 | 263 |
| 264 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ | 264 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |