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

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

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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_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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 for (; search->name; ++search) { 286 for (; search->name; ++search) {
287 std::string header_value; 287 std::string header_value;
288 if (!headers.GetHeader(search->name, &header_value)) 288 if (!headers.GetHeader(search->name, &header_value))
289 continue; 289 continue;
290 290
291 if (!search->value) 291 if (!search->value)
292 return true; 292 return true;
293 293
294 HttpUtil::ValuesIterator v(header_value.begin(), header_value.end(), ','); 294 HttpUtil::ValuesIterator v(header_value.begin(), header_value.end(), ',');
295 while (v.GetNext()) { 295 while (v.GetNext()) {
296 if (LowerCaseEqualsASCII(v.value_begin(), v.value_end(), search->value)) 296 if (base::LowerCaseEqualsASCII(v.value_begin(), v.value_end(),
297 search->value))
297 return true; 298 return true;
298 } 299 }
299 } 300 }
300 return false; 301 return false;
301 } 302 }
302 303
303 //----------------------------------------------------------------------------- 304 //-----------------------------------------------------------------------------
304 305
305 HttpCache::Transaction::Transaction( 306 HttpCache::Transaction::Transaction(
306 RequestPriority priority, 307 RequestPriority priority,
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2862 default: 2863 default:
2863 NOTREACHED(); 2864 NOTREACHED();
2864 } 2865 }
2865 } 2866 }
2866 2867
2867 void HttpCache::Transaction::OnIOComplete(int result) { 2868 void HttpCache::Transaction::OnIOComplete(int result) {
2868 DoLoop(result); 2869 DoLoop(result);
2869 } 2870 }
2870 2871
2871 } // namespace net 2872 } // 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