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

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
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[] = "Authoriziation";
cbentzel 2011/05/13 14:05:45 This is also contained in net::HttpAuth::GetAuthor
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";
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 it != headers_.end(); ++it) { 199 it != headers_.end(); ++it) {
199 if (key.length() == it->key.length() && 200 if (key.length() == it->key.length() &&
200 !base::strncasecmp(key.data(), it->key.data(), key.length())) 201 !base::strncasecmp(key.data(), it->key.data(), key.length()))
201 return it; 202 return it;
202 } 203 }
203 204
204 return headers_.end(); 205 return headers_.end();
205 } 206 }
206 207
207 } // namespace net 208 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698