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

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

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: Remove sequence numbers from mock reads Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 static const char kHost[]; 69 static const char kHost[];
70 static const char kIfModifiedSince[]; 70 static const char kIfModifiedSince[];
71 static const char kIfNoneMatch[]; 71 static const char kIfNoneMatch[];
72 static const char kIfRange[]; 72 static const char kIfRange[];
73 static const char kOrigin[]; 73 static const char kOrigin[];
74 static const char kPragma[]; 74 static const char kPragma[];
75 static const char kProxyAuthorization[]; 75 static const char kProxyAuthorization[];
76 static const char kProxyConnection[]; 76 static const char kProxyConnection[];
77 static const char kRange[]; 77 static const char kRange[];
78 static const char kReferer[]; 78 static const char kReferer[];
79 static const char kTransferEncoding[];
80 static const char kTokenBinding[];
79 static const char kUserAgent[]; 81 static const char kUserAgent[];
80 static const char kTransferEncoding[];
81 82
82 HttpRequestHeaders(); 83 HttpRequestHeaders();
83 ~HttpRequestHeaders(); 84 ~HttpRequestHeaders();
84 85
85 bool IsEmpty() const { return headers_.empty(); } 86 bool IsEmpty() const { return headers_.empty(); }
86 87
87 bool HasHeader(const base::StringPiece& key) const { 88 bool HasHeader(const base::StringPiece& key) const {
88 return FindHeader(key) != headers_.end(); 89 return FindHeader(key) != headers_.end();
89 } 90 }
90 91
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Allow the copy construction and operator= to facilitate copying in 173 // Allow the copy construction and operator= to facilitate copying in
173 // HttpRequestHeaders. 174 // HttpRequestHeaders.
174 // TODO(willchan): Investigate to see if we can remove the need to copy 175 // TODO(willchan): Investigate to see if we can remove the need to copy
175 // HttpRequestHeaders. 176 // HttpRequestHeaders.
176 // DISALLOW_COPY_AND_ASSIGN(HttpRequestHeaders); 177 // DISALLOW_COPY_AND_ASSIGN(HttpRequestHeaders);
177 }; 178 };
178 179
179 } // namespace net 180 } // namespace net
180 181
181 #endif // NET_HTTP_HTTP_REQUEST_HEADERS_H_ 182 #endif // NET_HTTP_HTTP_REQUEST_HEADERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698