| 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_TRANSACTION_H_ | 5 #ifndef NET_FTP_FTP_TRANSACTION_H_ |
| 6 #define NET_FTP_FTP_TRANSACTION_H_ | 6 #define NET_FTP_FTP_TRANSACTION_H_ |
| 7 | 7 |
| 8 #include "net/base/completion_callback.h" | 8 #include "net/base/completion_callback.h" |
| 9 #include "net/base/io_buffer.h" | 9 #include "net/base/io_buffer.h" |
| 10 #include "net/base/load_states.h" | 10 #include "net/base/load_states.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 class FtpRequestInfo; | 14 class FtpRequestInfo; |
| 15 class FtpResponseInfo; | |
| 16 class LoadLog; | 15 class LoadLog; |
| 17 | 16 |
| 17 struct FtpResponseInfo; |
| 18 |
| 18 // Represents a single FTP transaction. | 19 // Represents a single FTP transaction. |
| 19 class FtpTransaction { | 20 class FtpTransaction { |
| 20 public: | 21 public: |
| 21 // Stops any pending IO and destroys the transaction object. | 22 // Stops any pending IO and destroys the transaction object. |
| 22 virtual ~FtpTransaction() {} | 23 virtual ~FtpTransaction() {} |
| 23 | 24 |
| 24 // Starts the FTP transaction (i.e., sends the FTP request). | 25 // Starts the FTP transaction (i.e., sends the FTP request). |
| 25 // | 26 // |
| 26 // Returns OK if the transaction could be started synchronously, which means | 27 // Returns OK if the transaction could be started synchronously, which means |
| 27 // that the request was served from the cache (only supported for directory | 28 // that the request was served from the cache (only supported for directory |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual LoadState GetLoadState() const = 0; | 71 virtual LoadState GetLoadState() const = 0; |
| 71 | 72 |
| 72 // Returns the upload progress in bytes. If there is no upload data, | 73 // Returns the upload progress in bytes. If there is no upload data, |
| 73 // zero will be returned. | 74 // zero will be returned. |
| 74 virtual uint64 GetUploadProgress() const = 0; | 75 virtual uint64 GetUploadProgress() const = 0; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace net | 78 } // namespace net |
| 78 | 79 |
| 79 #endif // NET_FTP_FTP_TRANSACTION_H_ | 80 #endif // NET_FTP_FTP_TRANSACTION_H_ |
| OLD | NEW |