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

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

Issue 6969050: MAC Cookies (patch 4 of N) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « net/http/http_request_headers.h ('k') | net/url_request/url_request_http_job.cc » ('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) 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 #include "net/http/http_request_headers.h" 5 #include "net/http/http_request_headers.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/string_split.h" 9 #include "base/string_split.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "net/http/http_util.h" 11 #include "net/http/http_util.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 const char HttpRequestHeaders::kGetMethod[] = "GET"; 15 const char HttpRequestHeaders::kGetMethod[] = "GET";
16 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; 16 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset";
17 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; 17 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding";
18 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; 18 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language";
19 const char HttpRequestHeaders::kAuthorization[] = "Authorization";
19 const char HttpRequestHeaders::kCacheControl[] = "Cache-Control"; 20 const char HttpRequestHeaders::kCacheControl[] = "Cache-Control";
20 const char HttpRequestHeaders::kConnection[] = "Connection"; 21 const char HttpRequestHeaders::kConnection[] = "Connection";
21 const char HttpRequestHeaders::kContentLength[] = "Content-Length"; 22 const char HttpRequestHeaders::kContentLength[] = "Content-Length";
22 const char HttpRequestHeaders::kContentType[] = "Content-Type"; 23 const char HttpRequestHeaders::kContentType[] = "Content-Type";
23 const char HttpRequestHeaders::kCookie[] = "Cookie"; 24 const char HttpRequestHeaders::kCookie[] = "Cookie";
24 const char HttpRequestHeaders::kHost[] = "Host"; 25 const char HttpRequestHeaders::kHost[] = "Host";
25 const char HttpRequestHeaders::kIfModifiedSince[] = "If-Modified-Since"; 26 const char HttpRequestHeaders::kIfModifiedSince[] = "If-Modified-Since";
26 const char HttpRequestHeaders::kIfNoneMatch[] = "If-None-Match"; 27 const char HttpRequestHeaders::kIfNoneMatch[] = "If-None-Match";
27 const char HttpRequestHeaders::kIfRange[] = "If-Range"; 28 const char HttpRequestHeaders::kIfRange[] = "If-Range";
28 const char HttpRequestHeaders::kOrigin[] = "Origin"; 29 const char HttpRequestHeaders::kOrigin[] = "Origin";
29 const char HttpRequestHeaders::kPragma[] = "Pragma"; 30 const char HttpRequestHeaders::kPragma[] = "Pragma";
31 const char HttpRequestHeaders::kProxyAuthorization[] = "Proxy-Authorization";
30 const char HttpRequestHeaders::kProxyConnection[] = "Proxy-Connection"; 32 const char HttpRequestHeaders::kProxyConnection[] = "Proxy-Connection";
31 const char HttpRequestHeaders::kRange[] = "Range"; 33 const char HttpRequestHeaders::kRange[] = "Range";
32 const char HttpRequestHeaders::kReferer[] = "Referer"; 34 const char HttpRequestHeaders::kReferer[] = "Referer";
33 const char HttpRequestHeaders::kUserAgent[] = "User-Agent"; 35 const char HttpRequestHeaders::kUserAgent[] = "User-Agent";
34 const char HttpRequestHeaders::kTransferEncoding[] = "Transfer-Encoding"; 36 const char HttpRequestHeaders::kTransferEncoding[] = "Transfer-Encoding";
35 37
36 HttpRequestHeaders::HeaderKeyValuePair::HeaderKeyValuePair() { 38 HttpRequestHeaders::HeaderKeyValuePair::HeaderKeyValuePair() {
37 } 39 }
38 40
39 HttpRequestHeaders::HeaderKeyValuePair::HeaderKeyValuePair( 41 HttpRequestHeaders::HeaderKeyValuePair::HeaderKeyValuePair(
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 it != headers_.end(); ++it) { 200 it != headers_.end(); ++it) {
199 if (key.length() == it->key.length() && 201 if (key.length() == it->key.length() &&
200 !base::strncasecmp(key.data(), it->key.data(), key.length())) 202 !base::strncasecmp(key.data(), it->key.data(), key.length()))
201 return it; 203 return it;
202 } 204 }
203 205
204 return headers_.end(); 206 return headers_.end();
205 } 207 }
206 208
207 } // namespace net 209 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_request_headers.h ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698