Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RANKINGS_H_ |
| 8 #define NET_DISK_CACHE_RANKINGS_H__ | 8 #define NET_DISK_CACHE_RANKINGS_H_ |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| 11 | 11 |
| 12 #include "net/disk_cache/addr.h" | 12 #include "net/disk_cache/addr.h" |
| 13 #include "net/disk_cache/mapped_file.h" | 13 #include "net/disk_cache/mapped_file.h" |
| 14 #include "net/disk_cache/storage_block.h" | 14 #include "net/disk_cache/storage_block.h" |
| 15 | 15 |
| 16 namespace disk_cache { | 16 namespace disk_cache { |
| 17 | 17 |
| 18 class BackendImpl; | 18 class BackendImpl; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 | 134 |
| 135 // Controls tracking of nodes used for enumerations. | 135 // Controls tracking of nodes used for enumerations. |
| 136 void TrackRankingsBlock(CacheRankingsBlock* node, bool start_tracking); | 136 void TrackRankingsBlock(CacheRankingsBlock* node, bool start_tracking); |
| 137 | 137 |
| 138 // Updates the iterators whenever node is being changed. | 138 // Updates the iterators whenever node is being changed. |
| 139 void UpdateIterators(CacheRankingsBlock* node); | 139 void UpdateIterators(CacheRankingsBlock* node); |
| 140 | 140 |
| 141 bool init_; | 141 bool init_; |
| 142 Addr head_; | 142 Addr head_; |
| 143 Addr tail_; | 143 Addr tail_; |
| 144 BlockFileHeader* header_; // Header of the block-file used to store rankings. | |
| 145 BackendImpl* backend_; | 144 BackendImpl* backend_; |
| 145 LruData* control_data_; // Data related to the LRU lists. | |
|
Nicolas Sylvain
2008/12/04 18:52:28
I think you have too many spaces here.
| |
| 146 IteratorList iterators_; | 146 IteratorList iterators_; |
| 147 | 147 |
| 148 DISALLOW_EVIL_CONSTRUCTORS(Rankings); | 148 DISALLOW_COPY_AND_ASSIGN(Rankings); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace disk_cache | 151 } // namespace disk_cache |
| 152 | 152 |
| 153 #endif // NET_DISK_CACHE_RANKINGS_H__ | 153 #endif // NET_DISK_CACHE_RANKINGS_H_ |
| 154 | 154 |
| OLD | NEW |