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

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

Issue 2660783002: Range request support for parallel download in DownloadRequestCore. (Closed)
Patch Set: Work on feedbacks. Created 3 years, 10 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_request_headers.h ('k') | no next file » | 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) 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 #include "net/http/http_request_headers.h" 5 #include "net/http/http_request_headers.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 11 matching lines...) Expand all
22 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; 22 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset";
23 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; 23 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding";
24 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; 24 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language";
25 const char HttpRequestHeaders::kAuthorization[] = "Authorization"; 25 const char HttpRequestHeaders::kAuthorization[] = "Authorization";
26 const char HttpRequestHeaders::kCacheControl[] = "Cache-Control"; 26 const char HttpRequestHeaders::kCacheControl[] = "Cache-Control";
27 const char HttpRequestHeaders::kConnection[] = "Connection"; 27 const char HttpRequestHeaders::kConnection[] = "Connection";
28 const char HttpRequestHeaders::kContentLength[] = "Content-Length"; 28 const char HttpRequestHeaders::kContentLength[] = "Content-Length";
29 const char HttpRequestHeaders::kContentType[] = "Content-Type"; 29 const char HttpRequestHeaders::kContentType[] = "Content-Type";
30 const char HttpRequestHeaders::kCookie[] = "Cookie"; 30 const char HttpRequestHeaders::kCookie[] = "Cookie";
31 const char HttpRequestHeaders::kHost[] = "Host"; 31 const char HttpRequestHeaders::kHost[] = "Host";
32 const char HttpRequestHeaders::kIfMatch[] = "If-Match";
32 const char HttpRequestHeaders::kIfModifiedSince[] = "If-Modified-Since"; 33 const char HttpRequestHeaders::kIfModifiedSince[] = "If-Modified-Since";
33 const char HttpRequestHeaders::kIfNoneMatch[] = "If-None-Match"; 34 const char HttpRequestHeaders::kIfNoneMatch[] = "If-None-Match";
34 const char HttpRequestHeaders::kIfRange[] = "If-Range"; 35 const char HttpRequestHeaders::kIfRange[] = "If-Range";
36 const char HttpRequestHeaders::kIfUnmodifiedSince[] = "If-Unmodified-Since";
35 const char HttpRequestHeaders::kOrigin[] = "Origin"; 37 const char HttpRequestHeaders::kOrigin[] = "Origin";
36 const char HttpRequestHeaders::kPragma[] = "Pragma"; 38 const char HttpRequestHeaders::kPragma[] = "Pragma";
37 const char HttpRequestHeaders::kProxyAuthorization[] = "Proxy-Authorization"; 39 const char HttpRequestHeaders::kProxyAuthorization[] = "Proxy-Authorization";
38 const char HttpRequestHeaders::kProxyConnection[] = "Proxy-Connection"; 40 const char HttpRequestHeaders::kProxyConnection[] = "Proxy-Connection";
39 const char HttpRequestHeaders::kRange[] = "Range"; 41 const char HttpRequestHeaders::kRange[] = "Range";
40 const char HttpRequestHeaders::kReferer[] = "Referer"; 42 const char HttpRequestHeaders::kReferer[] = "Referer";
41 const char HttpRequestHeaders::kTransferEncoding[] = "Transfer-Encoding"; 43 const char HttpRequestHeaders::kTransferEncoding[] = "Transfer-Encoding";
42 const char HttpRequestHeaders::kTokenBinding[] = "Sec-Token-Binding"; 44 const char HttpRequestHeaders::kTokenBinding[] = "Sec-Token-Binding";
43 const char HttpRequestHeaders::kUserAgent[] = "User-Agent"; 45 const char HttpRequestHeaders::kUserAgent[] = "User-Agent";
44 46
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 for (HeaderVector::const_iterator it = headers_.begin(); 253 for (HeaderVector::const_iterator it = headers_.begin();
252 it != headers_.end(); ++it) { 254 it != headers_.end(); ++it) {
253 if (base::EqualsCaseInsensitiveASCII(key, it->key)) 255 if (base::EqualsCaseInsensitiveASCII(key, it->key))
254 return it; 256 return it;
255 } 257 }
256 258
257 return headers_.end(); 259 return headers_.end();
258 } 260 }
259 261
260 } // namespace net 262 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_request_headers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698