OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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/backend_impl.h" | 5 #include "net/disk_cache/backend_impl.h" |
6 | 6 |
7 #include "base/field_trial.h" | 7 #include "base/field_trial.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/histogram.h" | 10 #include "base/histogram.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/rand_util.h" | |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
14 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
15 #include "base/timer.h" | 14 #include "base/timer.h" |
16 #include "base/worker_pool.h" | 15 #include "base/worker_pool.h" |
17 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
18 #include "net/disk_cache/cache_util.h" | 17 #include "net/disk_cache/cache_util.h" |
19 #include "net/disk_cache/entry_impl.h" | 18 #include "net/disk_cache/entry_impl.h" |
20 #include "net/disk_cache/errors.h" | 19 #include "net/disk_cache/errors.h" |
21 #include "net/disk_cache/hash.h" | 20 #include "net/disk_cache/hash.h" |
22 #include "net/disk_cache/file.h" | 21 #include "net/disk_cache/file.h" |
(...skipping 1837 matching lines...) Loading... |
1860 | 1859 |
1861 return num_dirty; | 1860 return num_dirty; |
1862 } | 1861 } |
1863 | 1862 |
1864 bool BackendImpl::CheckEntry(EntryImpl* cache_entry) { | 1863 bool BackendImpl::CheckEntry(EntryImpl* cache_entry) { |
1865 RankingsNode* rankings = cache_entry->rankings()->Data(); | 1864 RankingsNode* rankings = cache_entry->rankings()->Data(); |
1866 return !rankings->dummy; | 1865 return !rankings->dummy; |
1867 } | 1866 } |
1868 | 1867 |
1869 } // namespace disk_cache | 1868 } // namespace disk_cache |
OLD | NEW |