| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class ClientSocketFactory; | 26 class ClientSocketFactory; |
| 27 class FtpNetworkSession; | 27 class FtpNetworkSession; |
| 28 class StreamSocket; | 28 class StreamSocket; |
| 29 | 29 |
| 30 class NET_EXPORT_PRIVATE 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 ~FtpNetworkTransaction() override; | 34 ~FtpNetworkTransaction() override; |
| 35 | 35 |
| 36 virtual int Stop(int error); | 36 int Stop(int error); |
| 37 virtual int RestartIgnoringLastError(const CompletionCallback& callback); | |
| 38 | 37 |
| 39 // FtpTransaction methods: | 38 // FtpTransaction methods: |
| 40 int Start(const FtpRequestInfo* request_info, | 39 int Start(const FtpRequestInfo* request_info, |
| 41 const CompletionCallback& callback, | 40 const CompletionCallback& callback, |
| 42 const BoundNetLog& net_log) override; | 41 const BoundNetLog& net_log) override; |
| 43 int RestartWithAuth(const AuthCredentials& credentials, | 42 int RestartWithAuth(const AuthCredentials& credentials, |
| 44 const CompletionCallback& callback) override; | 43 const CompletionCallback& callback) override; |
| 45 int Read(IOBuffer* buf, | 44 int Read(IOBuffer* buf, |
| 46 int buf_len, | 45 int buf_len, |
| 47 const CompletionCallback& callback) override; | 46 const CompletionCallback& callback) override; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 255 |
| 257 State next_state_; | 256 State next_state_; |
| 258 | 257 |
| 259 // State to switch to after data connection is complete. | 258 // State to switch to after data connection is complete. |
| 260 State state_after_data_connect_complete_; | 259 State state_after_data_connect_complete_; |
| 261 }; | 260 }; |
| 262 | 261 |
| 263 } // namespace net | 262 } // namespace net |
| 264 | 263 |
| 265 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ | 264 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |