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

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

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 years, 6 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_auth_sspi_win.cc ('k') | net/http/http_content_disposition.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) 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_cache_transaction.h" 5 #include "net/http/http_cache_transaction.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_POSIX) 9 #if defined(OS_POSIX)
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 for (; search->name; ++search) { 247 for (; search->name; ++search) {
248 std::string header_value; 248 std::string header_value;
249 if (!headers.GetHeader(search->name, &header_value)) 249 if (!headers.GetHeader(search->name, &header_value))
250 continue; 250 continue;
251 251
252 if (!search->value) 252 if (!search->value)
253 return true; 253 return true;
254 254
255 HttpUtil::ValuesIterator v(header_value.begin(), header_value.end(), ','); 255 HttpUtil::ValuesIterator v(header_value.begin(), header_value.end(), ',');
256 while (v.GetNext()) { 256 while (v.GetNext()) {
257 if (LowerCaseEqualsASCII(v.value_begin(), v.value_end(), search->value)) 257 if (base::LowerCaseEqualsASCII(v.value_begin(), v.value_end(),
258 search->value))
258 return true; 259 return true;
259 } 260 }
260 } 261 }
261 return false; 262 return false;
262 } 263 }
263 264
264 //----------------------------------------------------------------------------- 265 //-----------------------------------------------------------------------------
265 266
266 HttpCache::Transaction::Transaction(RequestPriority priority, HttpCache* cache) 267 HttpCache::Transaction::Transaction(RequestPriority priority, HttpCache* cache)
267 : next_state_(STATE_NONE), 268 : next_state_(STATE_NONE),
(...skipping 2713 matching lines...) Expand 10 before | Expand all | Expand 10 after
2981 default: 2982 default:
2982 NOTREACHED(); 2983 NOTREACHED();
2983 } 2984 }
2984 } 2985 }
2985 2986
2986 void HttpCache::Transaction::OnIOComplete(int result) { 2987 void HttpCache::Transaction::OnIOComplete(int result) {
2987 DoLoop(result); 2988 DoLoop(result);
2988 } 2989 }
2989 2990
2990 } // namespace net 2991 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_auth_sspi_win.cc ('k') | net/http/http_content_disposition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698