/external/chromium/net/disk_cache/ |
D | eviction.cc | 76 rankings_ = &backend->rankings_; in Init() 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() 128 rankings_->TrackRankingsBlock(node.get(), false); in TrimCache() 161 rankings_->UpdateRank(entry->rankings(), modified, GetListForEntry(entry)); in UpdateRank() 173 rankings_->Insert(entry->rankings(), true, GetListForEntry(entry)); in OnCreateEntry() 183 rankings_->Remove(entry->rankings(), GetListForEntry(entry), true); in OnDoomEntry() 275 rankings_->Remove(entry->rankings(), GetListForEntryV2(entry), true); in EvictEntry() [all …]
|
D | mem_backend_impl.cc | 97 rankings_.Remove(entry); in InternalDoomEntry() 108 rankings_.UpdateRank(node); in UpdateRank() 123 rankings_.Insert(entry); in InsertIntoRankingList() 127 rankings_.Remove(entry); in RemoveFromRankingList() 216 rankings_.Insert(cache_entry); in CreateEntry() 245 MemEntryImpl* next = rankings_.GetNext(NULL); in DoomEntriesBetween() 252 next = rankings_.GetNext(next); in DoomEntriesBetween() 267 Entry* entry = rankings_.GetNext(NULL); in DoomEntriesSince() 278 MemEntryImpl* node = rankings_.GetNext(current); in OpenNextEntry() 282 node = rankings_.GetNext(node); in OpenNextEntry() [all …]
|
D | rankings.h | 68 ScopedRankingsBlock() : rankings_(NULL) {} in ScopedRankingsBlock() 69 explicit ScopedRankingsBlock(Rankings* rankings) : rankings_(rankings) {} in ScopedRankingsBlock() 71 : scoped_ptr<CacheRankingsBlock>(node), rankings_(rankings) {} in ScopedRankingsBlock() 74 rankings_->FreeRankingsBlock(get()); in ~ScopedRankingsBlock() 78 rankings_ = rankings; in set_rankings() 84 rankings_->FreeRankingsBlock(get()); 89 Rankings* rankings_;
|
D | backend_impl.cc | 511 disabled_ = !rankings_.Init(this, new_eviction_); in SyncInit() 1240 int num_entries = rankings_.SelfCheck(); in SelfCheck() 1497 rankings_.Reset(); in PrepareForRestart() 1542 if (!rankings_.SanityCheck(cache_entry->rankings(), false)) { in NewEntry() 1547 rankings_.SetContents(cache_entry->rankings(), 0); in NewEntry() 1548 } else if (!rankings_.DataSanityCheck(cache_entry->rankings(), false)) { in NewEntry() 1550 rankings_.SetContents(cache_entry->rankings(), address.value()); in NewEntry() 1686 iterator.reset(new Rankings::Iterator(&rankings_)); in OpenFollowingEntry() 1758 Rankings::ScopedRankingsBlock rankings(&rankings_, *from_entry); in OpenFollowingEntryFromList() 1760 rankings_.GetNext(rankings.get(), list) : in OpenFollowingEntryFromList() [all …]
|
D | eviction.h | 73 Rankings* rankings_; variable
|
D | mem_backend_impl.h | 107 MemRankings rankings_; // Rankings to be able to trim the cache. variable
|
D | backend_impl.h | 347 Rankings rankings_; // Rankings to be able to trim the cache. variable
|
/external/chromium_org/net/disk_cache/ |
D | eviction.cc | 84 rankings_ = &backend->rankings_; in Init() 123 Rankings::ScopedRankingsBlock node(rankings_); in TrimCache() 125 rankings_, rankings_->GetPrev(node.get(), Rankings::NO_USE)); in TrimCache() 133 next.reset(rankings_->GetPrev(node.get(), Rankings::NO_USE)); in TrimCache() 137 rankings_->TrackRankingsBlock(node.get(), false); in TrimCache() 169 rankings_->UpdateRank(entry->rankings(), modified, GetListForEntry(entry)); in UpdateRank() 181 rankings_->Insert(entry->rankings(), true, GetListForEntry(entry)); in OnCreateEntry() 191 rankings_->Remove(entry->rankings(), GetListForEntry(entry), true); in OnDoomEntry() 298 rankings_->Remove(entry->rankings(), GetListForEntryV2(entry), true); in EvictEntry() 301 rankings_->Insert(entry->rankings(), true, Rankings::DELETED); in EvictEntry() [all …]
|
D | mem_backend_impl.cc | 94 rankings_.Remove(entry); in InternalDoomEntry() 105 rankings_.UpdateRank(node); in UpdateRank() 120 rankings_.Insert(entry); in InsertIntoRankingList() 124 rankings_.Remove(entry); in RemoveFromRankingList() 224 rankings_.Insert(cache_entry); in CreateEntry() 253 MemEntryImpl* node = rankings_.GetNext(NULL); in DoomEntriesBetween() 272 node = rankings_.GetNext(last_valid); in DoomEntriesBetween() 281 Entry* entry = rankings_.GetNext(NULL); in DoomEntriesSince() 292 MemEntryImpl* node = rankings_.GetNext(current); in OpenNextEntry() 296 node = rankings_.GetNext(node); in OpenNextEntry() [all …]
|
D | rankings.h | 75 rankings_->FreeRankingsBlock(get()); in ~ScopedRankingsBlock() 79 rankings_ = rankings; in set_rankings() 85 rankings_->FreeRankingsBlock(get()); 90 Rankings* rankings_;
|
D | backend_impl.cc | 273 disabled_ = !rankings_.Init(this, new_eviction_); in SyncInit() 1098 int num_entries = rankings_.SelfCheck(); in SelfCheck() 1421 rankings_.Reset(); in PrepareForRestart() 1469 if (!rankings_.SanityCheck(cache_entry->rankings(), false)) { in NewEntry() 1475 rankings_.SetContents(cache_entry->rankings(), 0); in NewEntry() 1476 } else if (!rankings_.DataSanityCheck(cache_entry->rankings(), false)) { in NewEntry() 1479 rankings_.SetContents(cache_entry->rankings(), address.value()); in NewEntry() 1619 iterator.reset(new Rankings::Iterator(&rankings_)); in OpenFollowingEntry() 1692 Rankings::ScopedRankingsBlock rankings(&rankings_, *from_entry); in OpenFollowingEntryFromList() 1694 rankings_.GetNext(rankings.get(), list) : in OpenFollowingEntryFromList() [all …]
|
D | eviction.h | 73 Rankings* rankings_; variable
|
D | mem_backend_impl.h | 109 MemRankings rankings_; // Rankings to be able to trim the cache. variable
|
D | rankings.cc | 193 Rankings::ScopedRankingsBlock::ScopedRankingsBlock() : rankings_(NULL) {} in ScopedRankingsBlock() 196 : rankings_(rankings) {} in ScopedRankingsBlock() 200 : scoped_ptr<CacheRankingsBlock>(node), rankings_(rankings) {} in ScopedRankingsBlock()
|
D | backend_impl.h | 360 Rankings rankings_; // Rankings to be able to trim the cache. variable
|
/external/chromium_org/net/disk_cache/v3/ |
D | eviction_v3.cc | 83 rankings_ = &backend->rankings_; in Init() 122 Rankings::ScopedRankingsBlock node(rankings_); in TrimCache() 124 rankings_, rankings_->GetPrev(node.get(), Rankings::NO_USE)); in TrimCache() 132 next.reset(rankings_->GetPrev(node.get(), Rankings::NO_USE)); in TrimCache() 136 rankings_->TrackRankingsBlock(node.get(), false); in TrimCache() 174 rankings_->Remove(entry->rankings(), Rankings::NO_USE, true); in OnOpenEntryV2() 175 rankings_->Insert(entry->rankings(), false, Rankings::LOW_USE); in OnOpenEntryV2() 178 rankings_->Remove(entry->rankings(), Rankings::LOW_USE, true); in OnOpenEntryV2() 179 rankings_->Insert(entry->rankings(), false, Rankings::HIGH_USE); in OnOpenEntryV2() 204 rankings_->Remove(entry->rankings(), Rankings::DELETED, true); in OnCreateEntryV2() [all …]
|
D | eviction_v3.h | 56 Rankings* rankings_; variable
|
D | backend_impl_v3.cc | 470 int num_entries = rankings_.SelfCheck(); in SelfCheck() 933 rankings_.Reset(); in PrepareForRestart() 1006 if (!rankings_.SanityCheck(cache_entry->rankings(), false)) { in NewEntry() 1012 rankings_.SetContents(cache_entry->rankings(), 0); in NewEntry() 1013 } else if (!rankings_.DataSanityCheck(cache_entry->rankings(), false)) { in NewEntry() 1016 rankings_.SetContents(cache_entry->rankings(), address.value()); in NewEntry() 1054 iterator.reset(new Rankings::Iterator(&rankings_)); in OpenFollowingEntry() 1240 disabled_ = !rankings_.Init(this, new_eviction_); in SyncInit()
|
D | backend_worker.cc | 215 disabled_ = !rankings_.Init(this, new_eviction_); in SyncInit() 250 rankings_.Reset(); in PrepareForRestart()
|
/external/chromium_org/net/data/cache_tests/bad_rankings3/ |
D | contents.txt | 90 rankings_->Remove(entry->rankings(), Rankings::NO_USE); 91 rankings_->Insert(entry->rankings(), false, Rankings::LOW_USE);
|
/external/chromium/net/data/cache_tests/bad_rankings3/ |
D | contents.txt | 90 rankings_->Remove(entry->rankings(), Rankings::NO_USE); 91 rankings_->Insert(entry->rankings(), false, Rankings::LOW_USE);
|