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; | |
16 | 15 |
17 // Represents a single HTTP transaction (i.e., a single request/response pair). | 16 // Represents a single HTTP transaction (i.e., a single request/response pair). |
18 // HTTP redirects are not followed and authentication challenges are not | 17 // HTTP redirects are not followed and authentication challenges are not |
19 // answered. Cookies are assumed to be managed by the caller. | 18 // answered. Cookies are assumed to be managed by the caller. |
20 class HttpTransaction { | 19 class HttpTransaction { |
21 public: | 20 public: |
22 // Stops any pending IO and destroys the transaction object. | 21 // Stops any pending IO and destroys the transaction object. |
23 virtual ~HttpTransaction() {} | 22 virtual ~HttpTransaction() {} |
24 | 23 |
25 // Starts the HTTP transaction (i.e., sends the HTTP request). | 24 // Starts the HTTP transaction (i.e., sends the HTTP request). |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 81 |
83 // Returns the upload progress in bytes. If there is no upload data, | 82 // Returns the upload progress in bytes. If there is no upload data, |
84 // zero will be returned. This does not include the request headers. | 83 // zero will be returned. This does not include the request headers. |
85 virtual uint64 GetUploadProgress() const = 0; | 84 virtual uint64 GetUploadProgress() const = 0; |
86 }; | 85 }; |
87 | 86 |
88 } // namespace net | 87 } // namespace net |
89 | 88 |
90 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 89 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
91 | 90 |
OLD | NEW |