| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |