Home
last modified time | relevance | path

Searched refs:rankings_ (Results 1 – 7 of 7) sorted by relevance

/external/cronet/net/disk_cache/blockfile/
Deviction.cc89 rankings_ = &backend->rankings_; in Init()
128 Rankings::ScopedRankingsBlock node(rankings_); in TrimCache()
130 rankings_, rankings_->GetPrev(node.get(), Rankings::NO_USE)); in TrimCache()
138 next.reset(rankings_->GetPrev(node.get(), Rankings::NO_USE)); in TrimCache()
142 rankings_->TrackRankingsBlock(node.get(), false); in TrimCache()
173 rankings_->UpdateRank(entry->rankings(), modified, GetListForEntry(entry)); in UpdateRank()
185 rankings_->Insert(entry->rankings(), true, GetListForEntry(entry)); in OnCreateEntry()
195 rankings_->Remove(entry->rankings(), GetListForEntry(entry), true); in OnDoomEntry()
299 rankings_->Remove(entry->rankings(), GetListForEntryV2(entry.get()), true); in EvictEntry()
302 rankings_->Insert(entry->rankings(), true, Rankings::DELETED); in EvictEntry()
[all …]
Drankings.h80 rankings_->FreeRankingsBlock(get()); in ~ScopedRankingsBlock()
84 rankings_ = rankings; in set_rankings()
90 rankings_->FreeRankingsBlock(get());
95 raw_ptr<Rankings> rankings_;
Dbackend_impl.cc295 disabled_ = !rankings_.Init(this, new_eviction_); in SyncInit()
643 iterator->my_rankings = &rankings_; in OpenNextEntryImpl()
1189 int num_entries = rankings_.SelfCheck(); in SelfCheck()
1566 rankings_.Reset(); in PrepareForRestart()
1606 if (!rankings_.SanityCheck(cache_entry->rankings(), false)) { in NewEntry()
1612 rankings_.SetContents(cache_entry->rankings(), 0); in NewEntry()
1613 } else if (!rankings_.DataSanityCheck(cache_entry->rankings(), false)) { in NewEntry()
1616 rankings_.SetContents(cache_entry->rankings(), address.value()); in NewEntry()
1741 Rankings::ScopedRankingsBlock rankings(&rankings_, *from_entry); in OpenFollowingEntryFromList()
1742 CacheRankingsBlock* next_block = rankings_.GetNext(rankings.get(), list); in OpenFollowingEntryFromList()
[all …]
Deviction.h77 raw_ptr<Rankings> rankings_; variable
Drankings.cc200 Rankings::ScopedRankingsBlock::ScopedRankingsBlock() : rankings_(nullptr) {} in ScopedRankingsBlock()
203 : rankings_(rankings) {} in ScopedRankingsBlock()
207 : std::unique_ptr<CacheRankingsBlock>(node), rankings_(rankings) {} in ScopedRankingsBlock()
Dbackend_impl.h409 Rankings rankings_; // Rankings to be able to trim the cache. variable
/external/cronet/net/data/cache_tests/bad_rankings3/
Dcontents.txt90 rankings_->Remove(entry->rankings(), Rankings::NO_USE);
91 rankings_->Insert(entry->rankings(), false, Rankings::LOW_USE);