| 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_HTTP_HTTP_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_ |
| 6 #define NET_HTTP_HTTP_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_TRANSACTION_H_ |
| 7 | 7 |
| 8 #include "net/base/completion_callback.h" | 8 #include "net/base/completion_callback.h" |
| 9 #include "net/base/load_states.h" | 9 #include "net/base/load_states.h" |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| 11 #include "net/base/upload_progress.h" |
| 11 | 12 |
| 12 namespace net { | 13 namespace net { |
| 13 | 14 |
| 14 class AuthCredentials; | 15 class AuthCredentials; |
| 15 class BoundNetLog; | 16 class BoundNetLog; |
| 16 struct HttpRequestInfo; | 17 struct HttpRequestInfo; |
| 17 class HttpResponseInfo; | 18 class HttpResponseInfo; |
| 18 class IOBuffer; | 19 class IOBuffer; |
| 19 class X509Certificate; | 20 class X509Certificate; |
| 20 | 21 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 102 |
| 102 // Returns the response info for this transaction or NULL if the response | 103 // Returns the response info for this transaction or NULL if the response |
| 103 // info is not available. | 104 // info is not available. |
| 104 virtual const HttpResponseInfo* GetResponseInfo() const = 0; | 105 virtual const HttpResponseInfo* GetResponseInfo() const = 0; |
| 105 | 106 |
| 106 // Returns the load state for this transaction. | 107 // Returns the load state for this transaction. |
| 107 virtual LoadState GetLoadState() const = 0; | 108 virtual LoadState GetLoadState() const = 0; |
| 108 | 109 |
| 109 // Returns the upload progress in bytes. If there is no upload data, | 110 // Returns the upload progress in bytes. If there is no upload data, |
| 110 // zero will be returned. This does not include the request headers. | 111 // zero will be returned. This does not include the request headers. |
| 111 virtual uint64 GetUploadProgress() const = 0; | 112 virtual UploadProgress GetUploadProgress() const = 0; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace net | 115 } // namespace net |
| 115 | 116 |
| 116 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 117 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
| OLD | NEW |