OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 10 |
11 namespace net { | 11 namespace net { |
12 | 12 |
13 class HttpRequestInfo; | 13 class HttpRequestInfo; |
14 class HttpResponseInfo; | 14 class HttpResponseInfo; |
| 15 class IOBuffer; |
15 | 16 |
16 // Represents a single HTTP transaction (i.e., a single request/response pair). | 17 // Represents a single HTTP transaction (i.e., a single request/response pair). |
17 // HTTP redirects are not followed and authentication challenges are not | 18 // HTTP redirects are not followed and authentication challenges are not |
18 // answered. Cookies are assumed to be managed by the caller. | 19 // answered. Cookies are assumed to be managed by the caller. |
19 class HttpTransaction { | 20 class HttpTransaction { |
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 ~HttpTransaction() {} | 23 virtual ~HttpTransaction() {} |
23 | 24 |
24 // Starts the HTTP transaction (i.e., sends the HTTP request). | 25 // Starts the HTTP transaction (i.e., sends the HTTP request). |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 82 |
82 // Returns the upload progress in bytes. If there is no upload data, | 83 // Returns the upload progress in bytes. If there is no upload data, |
83 // zero will be returned. This does not include the request headers. | 84 // zero will be returned. This does not include the request headers. |
84 virtual uint64 GetUploadProgress() const = 0; | 85 virtual uint64 GetUploadProgress() const = 0; |
85 }; | 86 }; |
86 | 87 |
87 } // namespace net | 88 } // namespace net |
88 | 89 |
89 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 90 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
90 | 91 |
OLD | NEW |