| 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 #ifndef NET_DISK_CACHE_BLOCKFILE_EVICTION_H_ | 5 #ifndef NET_DISK_CACHE_BLOCKFILE_EVICTION_H_ |
| 6 #define NET_DISK_CACHE_BLOCKFILE_EVICTION_H_ | 6 #define NET_DISK_CACHE_BLOCKFILE_EVICTION_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "net/disk_cache/blockfile/rankings.h" | 10 #include "net/disk_cache/blockfile/rankings.h" |
| 11 | 11 |
| 12 namespace disk_cache { | 12 namespace disk_cache { |
| 13 | 13 |
| 14 class BackendImpl; | 14 class BackendImpl; |
| 15 class EntryImpl; | 15 class EntryImpl; |
| 16 struct IndexHeader; | 16 struct IndexHeader; |
| 17 | 17 |
| 18 // This class implements the eviction algorithm for the cache and it is tightly | 18 // This class implements the eviction algorithm for the cache and it is tightly |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool init_; | 82 bool init_; |
| 83 bool test_mode_; | 83 bool test_mode_; |
| 84 base::WeakPtrFactory<Eviction> ptr_factory_; | 84 base::WeakPtrFactory<Eviction> ptr_factory_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(Eviction); | 86 DISALLOW_COPY_AND_ASSIGN(Eviction); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace disk_cache | 89 } // namespace disk_cache |
| 90 | 90 |
| 91 #endif // NET_DISK_CACHE_BLOCKFILE_EVICTION_H_ | 91 #endif // NET_DISK_CACHE_BLOCKFILE_EVICTION_H_ |
| OLD | NEW |