| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/disk_cache/simple/simple_backend_impl.h" | 5 #include "net/disk_cache/simple/simple_backend_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
| 14 #include "base/threading/worker_pool.h" | 14 #include "base/threading/worker_pool.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| 17 #include "net/disk_cache/backend_impl.h" | 17 #include "net/disk_cache/backend_impl.h" |
| 18 #include "net/disk_cache/simple/simple_entry_format.h" | 18 #include "net/disk_cache/simple/simple_entry_format.h" |
| 19 #include "net/disk_cache/simple/simple_entry_impl.h" | 19 #include "net/disk_cache/simple/simple_entry_impl.h" |
| 20 #include "net/disk_cache/simple/simple_index.h" | 20 #include "net/disk_cache/simple/simple_index.h" |
| 21 #include "net/disk_cache/simple/simple_index_file.h" | 21 #include "net/disk_cache/simple/simple_index_file.h" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // currently active entry. | 345 // currently active entry. |
| 346 if (key != it->second->key()) { | 346 if (key != it->second->key()) { |
| 347 it->second->Doom(); | 347 it->second->Doom(); |
| 348 DCHECK_EQ(0U, active_entries_.count(entry_hash)); | 348 DCHECK_EQ(0U, active_entries_.count(entry_hash)); |
| 349 return CreateOrFindActiveEntry(key); | 349 return CreateOrFindActiveEntry(key); |
| 350 } | 350 } |
| 351 return make_scoped_refptr(it->second.get()); | 351 return make_scoped_refptr(it->second.get()); |
| 352 } | 352 } |
| 353 | 353 |
| 354 } // namespace disk_cache | 354 } // namespace disk_cache |
| OLD | NEW |