Searched refs:Rankings (Results 1 – 13 of 13) sorted by relevance
/external/chromium/net/disk_cache/ |
D | eviction.cc | 115 Rankings::ScopedRankingsBlock node(rankings_); in TrimCache() 116 Rankings::ScopedRankingsBlock next(rankings_, in TrimCache() 117 rankings_->GetPrev(node.get(), Rankings::NO_USE)); in TrimCache() 124 next.reset(rankings_->GetPrev(node.get(), Rankings::NO_USE)); in TrimCache() 129 if (!EvictEntry(node.get(), empty, Rankings::NO_USE) && !test_mode_) in TrimCache() 255 Rankings::List Eviction::GetListForEntry(EntryImpl* entry) { in GetListForEntry() 256 return Rankings::NO_USE; in GetListForEntry() 260 Rankings::List list) { in EvictEntry() 278 rankings_->Insert(entry->rankings(), true, Rankings::DELETED); in EvictEntry() 294 Rankings::ScopedRankingsBlock next[kListsToSearch]; in TrimCacheV2() [all …]
|
D | rankings.cc | 193 Rankings::Iterator::Iterator(Rankings* rankings) { in Iterator() 198 Rankings::Iterator::~Iterator() { in ~Iterator() 203 Rankings::Rankings() : init_(false) {} in Rankings() function in disk_cache::Rankings 205 Rankings::~Rankings() {} in ~Rankings() 207 bool Rankings::Init(BackendImpl* backend, bool count_lists) { in Init() 226 void Rankings::Reset() { in Reset() 235 void Rankings::Insert(CacheRankingsBlock* node, bool modified, List list) { in Insert() 305 void Rankings::Remove(CacheRankingsBlock* node, List list, bool strict) { in Remove() 386 void Rankings::UpdateRank(CacheRankingsBlock* node, bool modified, List list) { in UpdateRank() 400 CacheRankingsBlock* Rankings::GetNext(CacheRankingsBlock* node, List list) { in GetNext() [all …]
|
D | rankings.h | 51 class Rankings { 69 explicit ScopedRankingsBlock(Rankings* rankings) : rankings_(rankings) {} in ScopedRankingsBlock() 70 ScopedRankingsBlock(Rankings* rankings, CacheRankingsBlock* node) in ScopedRankingsBlock() 77 void set_rankings(Rankings* rankings) { in set_rankings() 89 Rankings* rankings_; 96 explicit Iterator(Rankings* rankings); 101 Rankings* my_rankings; 104 Rankings(); 105 ~Rankings(); 206 DISALLOW_COPY_AND_ASSIGN(Rankings);
|
D | eviction.h | 52 Rankings::List GetListForEntry(EntryImpl* entry); 53 bool EvictEntry(CacheRankingsBlock* node, bool empty, Rankings::List list); 64 Rankings::List GetListForEntryV2(EntryImpl* entry); 69 int SelectListByLength(Rankings::ScopedRankingsBlock* next); 73 Rankings* rankings_;
|
D | backend_impl.h | 299 bool OpenFollowingEntryFromList(bool forward, Rankings::List list, 304 EntryImpl* GetEnumeratedEntry(CacheRankingsBlock* next, Rankings::List list); 347 Rankings rankings_; // Rankings to be able to trim the cache.
|
D | backend_impl.cc | 662 scoped_ptr<Rankings::Iterator> iterator( in SyncEndEnumeration() 663 reinterpret_cast<Rankings::Iterator*>(iter)); in SyncEndEnumeration() 1261 data_->header.lru.sizes[Rankings::DELETED]; in GetEntryCount() 1681 scoped_ptr<Rankings::Iterator> iterator( in OpenFollowingEntry() 1682 reinterpret_cast<Rankings::Iterator*>(*iter)); in OpenFollowingEntry() 1686 iterator.reset(new Rankings::Iterator(&rankings_)); in OpenFollowingEntry() 1692 ret |= OpenFollowingEntryFromList(forward, static_cast<Rankings::List>(i), in OpenFollowingEntry() 1708 static_cast<Rankings::List>(i)); in OpenFollowingEntry() 1739 iterator->list = static_cast<Rankings::List>(newest); in OpenFollowingEntry() 1742 iterator->list = static_cast<Rankings::List>(oldest); in OpenFollowingEntry() [all …]
|
/external/chromium/net/data/cache_tests/bad_rankings3/ |
D | contents.txt | 25 Rankings at 0x90000000 42 Rankings at 0x90000001 59 Rankings at 0x90000002 90 rankings_->Remove(entry->rankings(), Rankings::NO_USE); 91 rankings_->Insert(entry->rankings(), false, Rankings::LOW_USE);
|
/external/chromium/net/data/cache_tests/list_loop3/ |
D | contents.txt | 127 Rankings at 0x90000000 155 Rankings at 0x90000001 183 Rankings at 0x90000002 211 Rankings at 0x90000003 239 Rankings at 0x90000004
|
/external/chromium/net/data/cache_tests/dirty_entry4/ |
D | contents.txt | 127 Rankings at 0x90000001 155 Rankings at 0x90000002
|
/external/chromium/net/data/cache_tests/dirty_entry3/ |
D | contents.txt | 127 Rankings at 0x90000001 155 Rankings at 0x90000002
|
/external/chromium/net/data/cache_tests/list_loop2/ |
D | contents.txt | 127 Rankings at 0x90000001
|
/external/chromium/net/data/cache_tests/dirty_entry5/ |
D | contents.txt | 127 Rankings at 0x90000000
|
/external/chromium/net/data/cache_tests/list_loop/ |
D | contents.txt | 228 * break on Rankings::Remove() and edit the values before they are saved.
|