| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // 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 "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "net/ftp/ftp_response_info.h" | 10 #include "net/ftp/ftp_response_info.h" |
| 11 #include "net/ftp/ftp_transaction.h" | 11 #include "net/ftp/ftp_transaction.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 class ClientSocket; | 15 class ClientSocket; |
| 16 class ClientSocketFactory; | 16 class ClientSocketFactory; |
| 17 class FtpNetworkSession; | 17 class FtpNetworkSession; |
| 18 | 18 |
| 19 class FtpNetworkTransaction : public FtpTransaction { | 19 class FtpNetworkTransaction : public FtpTransaction { |
| 20 public: | 20 public: |
| 21 FtpNetworkTransaction( | 21 FtpNetworkTransaction( |
| 22 FtpNetworkSession* session, ClientSocketFactory* socket_factory); | 22 FtpNetworkSession* session, ClientSocketFactory* socket_factory); |
| 23 ~FtpNetworkTransaction(); | 23 ~FtpNetworkTransaction(); |
| 24 | 24 |
| 25 // FtpTransactionFactory methods: | 25 // FtpTransaction methods: |
| 26 virtual void Destroy(); | 26 virtual void Destroy(); |
| 27 virtual int Start( | 27 virtual int Start( |
| 28 const FtpRequestInfo* request_info, CompletionCallback* callback); | 28 const FtpRequestInfo* request_info, CompletionCallback* callback); |
| 29 virtual int RestartWithAuth( | 29 virtual int RestartWithAuth( |
| 30 const std::wstring& username, const std::wstring& password, | 30 const std::wstring& username, const std::wstring& password, |
| 31 CompletionCallback* callback); | 31 CompletionCallback* callback); |
| 32 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); | 32 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); |
| 33 virtual const FtpResponseInfo* GetResponseInfo() const; | 33 virtual const FtpResponseInfo* GetResponseInfo() const; |
| 34 virtual LoadState GetLoadState() const; | 34 virtual LoadState GetLoadState() const; |
| 35 virtual uint64 GetUploadProgress() const; | 35 virtual uint64 GetUploadProgress() const; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 STATE_DATA_READ, | 90 STATE_DATA_READ, |
| 91 STATE_DATA_READ_COMPLETE, | 91 STATE_DATA_READ_COMPLETE, |
| 92 STATE_NONE | 92 STATE_NONE |
| 93 }; | 93 }; |
| 94 State next_state_; | 94 State next_state_; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace net | 97 } // namespace net |
| 98 | 98 |
| 99 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ | 99 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |