| 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 // See net/disk_cache/disk_cache.h for the public interface. | 5 // See net/disk_cache/disk_cache.h for the public interface. |
| 6 | 6 |
| 7 #ifndef NET_DISK_CACHE_RANKINGS_H_ | 7 #ifndef NET_DISK_CACHE_BLOCKFILE_RANKINGS_H_ |
| 8 #define NET_DISK_CACHE_RANKINGS_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_RANKINGS_H_ |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "net/disk_cache/addr.h" | 13 #include "net/disk_cache/blockfile/addr.h" |
| 14 #include "net/disk_cache/mapped_file.h" | 14 #include "net/disk_cache/blockfile/mapped_file.h" |
| 15 #include "net/disk_cache/storage_block.h" | 15 #include "net/disk_cache/blockfile/storage_block.h" |
| 16 | 16 |
| 17 namespace disk_cache { | 17 namespace disk_cache { |
| 18 | 18 |
| 19 class BackendImpl; | 19 class BackendImpl; |
| 20 struct LruData; | 20 struct LruData; |
| 21 struct RankingsNode; | 21 struct RankingsNode; |
| 22 typedef StorageBlock<RankingsNode> CacheRankingsBlock; | 22 typedef StorageBlock<RankingsNode> CacheRankingsBlock; |
| 23 | 23 |
| 24 // Type of crashes generated for the unit tests. | 24 // Type of crashes generated for the unit tests. |
| 25 enum RankCrashes { | 25 enum RankCrashes { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 Addr tails_[LAST_ELEMENT]; | 204 Addr tails_[LAST_ELEMENT]; |
| 205 BackendImpl* backend_; | 205 BackendImpl* backend_; |
| 206 LruData* control_data_; // Data related to the LRU lists. | 206 LruData* control_data_; // Data related to the LRU lists. |
| 207 IteratorList iterators_; | 207 IteratorList iterators_; |
| 208 | 208 |
| 209 DISALLOW_COPY_AND_ASSIGN(Rankings); | 209 DISALLOW_COPY_AND_ASSIGN(Rankings); |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 } // namespace disk_cache | 212 } // namespace disk_cache |
| 213 | 213 |
| 214 #endif // NET_DISK_CACHE_RANKINGS_H_ | 214 #endif // NET_DISK_CACHE_BLOCKFILE_RANKINGS_H_ |
| OLD | NEW |