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

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

Issue 6134003: Prototype of chunked transfer encoded POST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // HttpRequestHeaders manages the request headers. 5 // HttpRequestHeaders manages the request headers.
6 // It maintains these in a vector of header key/value pairs, thereby maintaining 6 // It maintains these in a vector of header key/value pairs, thereby maintaining
7 // the order of the headers. This means that any lookups are linear time 7 // the order of the headers. This means that any lookups are linear time
8 // operations. 8 // operations.
9 9
10 #ifndef NET_HTTP_HTTP_REQUEST_HEADERS_H_ 10 #ifndef NET_HTTP_HTTP_REQUEST_HEADERS_H_
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 static const char kHost[]; 66 static const char kHost[];
67 static const char kIfModifiedSince[]; 67 static const char kIfModifiedSince[];
68 static const char kIfNoneMatch[]; 68 static const char kIfNoneMatch[];
69 static const char kIfRange[]; 69 static const char kIfRange[];
70 static const char kOrigin[]; 70 static const char kOrigin[];
71 static const char kPragma[]; 71 static const char kPragma[];
72 static const char kProxyConnection[]; 72 static const char kProxyConnection[];
73 static const char kRange[]; 73 static const char kRange[];
74 static const char kReferer[]; 74 static const char kReferer[];
75 static const char kUserAgent[]; 75 static const char kUserAgent[];
76 static const char kTransferEncoding[];
76 77
77 HttpRequestHeaders(); 78 HttpRequestHeaders();
78 ~HttpRequestHeaders(); 79 ~HttpRequestHeaders();
79 80
80 bool IsEmpty() const { return headers_.empty(); } 81 bool IsEmpty() const { return headers_.empty(); }
81 82
82 bool HasHeader(const base::StringPiece& key) const { 83 bool HasHeader(const base::StringPiece& key) const {
83 return FindHeader(key) != headers_.end(); 84 return FindHeader(key) != headers_.end();
84 } 85 }
85 86
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Allow the copy construction and operator= to facilitate copying in 140 // Allow the copy construction and operator= to facilitate copying in
140 // HttpRequestInfo. 141 // HttpRequestInfo.
141 // TODO(willchan): Investigate to see if we can remove the need to copy 142 // TODO(willchan): Investigate to see if we can remove the need to copy
142 // HttpRequestInfo. 143 // HttpRequestInfo.
143 // DISALLOW_COPY_AND_ASSIGN(HttpRequestHeaders); 144 // DISALLOW_COPY_AND_ASSIGN(HttpRequestHeaders);
144 }; 145 };
145 146
146 } // namespace net 147 } // namespace net
147 148
148 #endif // NET_HTTP_HTTP_REQUEST_HEADERS_H_ 149 #endif // NET_HTTP_HTTP_REQUEST_HEADERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698