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

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

Issue 6997006: iwyu: Include stringprintf.h where appropriate, part 1. (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/string_split.h" 9 #include "base/string_split.h"
9 #include "base/string_util.h" 10 #include "base/string_util.h"
10 #include "net/http/http_util.h" 11 #include "net/http/http_util.h"
11 12
12 namespace net { 13 namespace net {
13 14
14 const char HttpRequestHeaders::kGetMethod[] = "GET"; 15 const char HttpRequestHeaders::kGetMethod[] = "GET";
15 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; 16 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset";
16 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; 17 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding";
17 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; 18 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language";
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 it != headers_.end(); ++it) { 198 it != headers_.end(); ++it) {
198 if (key.length() == it->key.length() && 199 if (key.length() == it->key.length() &&
199 !base::strncasecmp(key.data(), it->key.data(), key.length())) 200 !base::strncasecmp(key.data(), it->key.data(), key.length()))
200 return it; 201 return it;
201 } 202 }
202 203
203 return headers_.end(); 204 return headers_.end();
204 } 205 }
205 206
206 } // namespace net 207 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698