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

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

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
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 (base::LowerCaseEqualsASCII(v.value_begin(), v.value_end(), 296 if (LowerCaseEqualsASCII(v.value_begin(), v.value_end(), search->value))
297 search->value))
298 return true; 297 return true;
299 } 298 }
300 } 299 }
301 return false; 300 return false;
302 } 301 }
303 302
304 //----------------------------------------------------------------------------- 303 //-----------------------------------------------------------------------------
305 304
306 HttpCache::Transaction::Transaction( 305 HttpCache::Transaction::Transaction(
307 RequestPriority priority, 306 RequestPriority priority,
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2863 default: 2862 default:
2864 NOTREACHED(); 2863 NOTREACHED();
2865 } 2864 }
2866 } 2865 }
2867 2866
2868 void HttpCache::Transaction::OnIOComplete(int result) { 2867 void HttpCache::Transaction::OnIOComplete(int result) {
2869 DoLoop(result); 2868 DoLoop(result);
2870 } 2869 }
2871 2870
2872 } // namespace net 2871 } // namespace net
OLDNEW
« no previous file with comments | « trunk/src/net/http/http_auth_sspi_win.cc ('k') | trunk/src/net/http/http_content_disposition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698