Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Side by Side Diff: net/http/http_transaction.h

Issue 1604011: Use HttpRequestHeaders for extra_headers. (Closed)
Patch Set: Address eroman comments. Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_stream_parser.h ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/http/http_stream_parser.h ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698