| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |