Home
last modified time | relevance | path

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

/external/chromium/net/disk_cache/
Deviction.cc76 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 …]
Dmem_backend_impl.cc97 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 …]
Drankings.h68 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_;
Dbackend_impl.cc511 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 …]
Deviction.h73 Rankings* rankings_; variable
Dmem_backend_impl.h107 MemRankings rankings_; // Rankings to be able to trim the cache. variable
Dbackend_impl.h347 Rankings rankings_; // Rankings to be able to trim the cache. variable
/external/chromium_org/net/disk_cache/
Deviction.cc84 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 …]
Dmem_backend_impl.cc94 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 …]
Drankings.h75 rankings_->FreeRankingsBlock(get()); in ~ScopedRankingsBlock()
79 rankings_ = rankings; in set_rankings()
85 rankings_->FreeRankingsBlock(get());
90 Rankings* rankings_;
Dbackend_impl.cc273 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 …]
Deviction.h73 Rankings* rankings_; variable
Dmem_backend_impl.h109 MemRankings rankings_; // Rankings to be able to trim the cache. variable
Drankings.cc193 Rankings::ScopedRankingsBlock::ScopedRankingsBlock() : rankings_(NULL) {} in ScopedRankingsBlock()
196 : rankings_(rankings) {} in ScopedRankingsBlock()
200 : scoped_ptr<CacheRankingsBlock>(node), rankings_(rankings) {} in ScopedRankingsBlock()
Dbackend_impl.h360 Rankings rankings_; // Rankings to be able to trim the cache. variable
/external/chromium_org/net/disk_cache/v3/
Deviction_v3.cc83 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 …]
Deviction_v3.h56 Rankings* rankings_; variable
Dbackend_impl_v3.cc470 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()
Dbackend_worker.cc215 disabled_ = !rankings_.Init(this, new_eviction_); in SyncInit()
250 rankings_.Reset(); in PrepareForRestart()
/external/chromium_org/net/data/cache_tests/bad_rankings3/
Dcontents.txt90 rankings_->Remove(entry->rankings(), Rankings::NO_USE);
91 rankings_->Insert(entry->rankings(), false, Rankings::LOW_USE);
/external/chromium/net/data/cache_tests/bad_rankings3/
Dcontents.txt90 rankings_->Remove(entry->rankings(), Rankings::NO_USE);
91 rankings_->Insert(entry->rankings(), false, Rankings::LOW_USE);