| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| 11 #include "net/base/load_states.h" | 11 #include "net/base/load_states.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 class BoundNetLog; | 15 class BoundNetLog; |
| 16 class HttpRequestInfo; | 16 struct HttpRequestInfo; |
| 17 class HttpResponseInfo; | 17 class HttpResponseInfo; |
| 18 class IOBuffer; | 18 class IOBuffer; |
| 19 class X509Certificate; | 19 class X509Certificate; |
| 20 | 20 |
| 21 // Represents a single HTTP transaction (i.e., a single request/response pair). | 21 // Represents a single HTTP transaction (i.e., a single request/response pair). |
| 22 // HTTP redirects are not followed and authentication challenges are not | 22 // HTTP redirects are not followed and authentication challenges are not |
| 23 // answered. Cookies are assumed to be managed by the caller. | 23 // answered. Cookies are assumed to be managed by the caller. |
| 24 class HttpTransaction { | 24 class HttpTransaction { |
| 25 public: | 25 public: |
| 26 // Stops any pending IO and destroys the transaction object. | 26 // Stops any pending IO and destroys the transaction object. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 virtual LoadState GetLoadState() const = 0; | 102 virtual LoadState GetLoadState() const = 0; |
| 103 | 103 |
| 104 // Returns the upload progress in bytes. If there is no upload data, | 104 // Returns the upload progress in bytes. If there is no upload data, |
| 105 // zero will be returned. This does not include the request headers. | 105 // zero will be returned. This does not include the request headers. |
| 106 virtual uint64 GetUploadProgress() const = 0; | 106 virtual uint64 GetUploadProgress() const = 0; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace net | 109 } // namespace net |
| 110 | 110 |
| 111 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 111 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
| OLD | NEW |