/external/chromium/net/disk_cache/ |
D | rankings.h | 68 explicit ScopedRankingsBlock(Rankings* rankings) : rankings_(rankings) {} in ScopedRankingsBlock() argument 69 ScopedRankingsBlock(Rankings* rankings, CacheRankingsBlock* node) in ScopedRankingsBlock() argument 70 : scoped_ptr<CacheRankingsBlock>(node), rankings_(rankings) {} in ScopedRankingsBlock() 76 void set_rankings(Rankings* rankings) { in set_rankings() argument 77 rankings_ = rankings; in set_rankings() 98 explicit Iterator(Rankings* rankings) { in Iterator() 100 my_rankings = rankings; in Iterator() 153 bool GetRanking(CacheRankingsBlock* rankings); 156 void ConvertToLongLived(CacheRankingsBlock* rankings); 160 void FinishInsert(CacheRankingsBlock* rankings); [all …]
|
D | eviction.cc | 124 rankings_->UpdateRank(entry->rankings(), modified, GetListForEntry(entry)); in UpdateRank() 136 rankings_->Insert(entry->rankings(), true, GetListForEntry(entry)); in OnCreateEntry() 143 rankings_->Remove(entry->rankings(), GetListForEntry(entry)); in OnDoomEntry() 212 rankings_->Remove(entry->rankings(), GetListForEntryV2(entry)); in EvictEntry() 215 rankings_->Insert(entry->rankings(), true, Rankings::DELETED); in EvictEntry() 310 rankings_->UpdateRank(entry->rankings(), modified, GetListForEntryV2(entry)); in UpdateRankV2() 323 rankings_->Remove(entry->rankings(), Rankings::NO_USE); in OnOpenEntryV2() 324 rankings_->Insert(entry->rankings(), false, Rankings::LOW_USE); in OnOpenEntryV2() 327 rankings_->Remove(entry->rankings(), Rankings::LOW_USE); in OnOpenEntryV2() 328 rankings_->Insert(entry->rankings(), false, Rankings::HIGH_USE); in OnOpenEntryV2() [all …]
|
D | rankings.cc | 206 bool Rankings::GetRanking(CacheRankingsBlock* rankings) { in GetRanking() argument 207 if (!rankings->address().is_initialized()) in GetRanking() 211 if (!rankings->Load()) in GetRanking() 214 if (!SanityCheck(rankings, true)) { in GetRanking() 222 if (!rankings->Data()->dirty && !rankings->Data()->dummy) in GetRanking() 225 EntryImpl* entry = backend_->GetOpenEntry(rankings); in GetRanking() 226 if (backend_->GetCurrentEntryId() != rankings->Data()->dirty || !entry) { in GetRanking() 231 rankings->Data()->dummy = 0; in GetRanking() 232 rankings->Data()->dirty = backend_->GetCurrentEntryId() - 1; in GetRanking() 233 if (!rankings->Data()->dirty) in GetRanking() [all …]
|
D | backend_impl.cc | 458 block_files_.GetFile(node_address)->Store(cache_entry->rankings()); in CreateEntry() 739 void BackendImpl::RecoveredEntry(CacheRankingsBlock* rankings) { in RecoveredEntry() argument 740 Addr address(rankings->Data()->contents); in RecoveredEntry() 801 EntryImpl* BackendImpl::GetOpenEntry(CacheRankingsBlock* rankings) const { in GetOpenEntry() 802 DCHECK(rankings->HasData()); in GetOpenEntry() 804 open_entries_.find(rankings->Data()->contents); in GetOpenEntry() 1184 if (!rankings_.SanityCheck(cache_entry->rankings(), false)) in NewEntry() 1357 Rankings::ScopedRankingsBlock rankings(&rankings_, *from_entry); in OpenFollowingEntryFromList() local 1359 rankings_.GetNext(rankings.get(), list) : in OpenFollowingEntryFromList() 1360 rankings_.GetPrev(rankings.get(), list); in OpenFollowingEntryFromList() [all …]
|
D | backend_impl.h | 119 void RecoveredEntry(CacheRankingsBlock* rankings); 134 EntryImpl* GetOpenEntry(CacheRankingsBlock* rankings) const;
|
D | entry_impl.h | 60 inline CacheRankingsBlock* rankings() { in rankings() function
|
D | entry_impl.cc | 539 RankingsNode* rankings = node_.Data(); in Update() local 540 if (!rankings->dirty) { in Update() 541 rankings->dirty = backend_->GetCurrentEntryId(); in Update()
|
/external/chromium/net/tools/dump_cache/ |
D | dump_files.cc | 122 disk_cache::RankingsNode* rankings); 204 disk_cache::RankingsNode* rankings) { in LoadRankings() argument 214 memcpy(rankings, rank_block.Data(), sizeof(*rankings)); in LoadRankings() 243 void DumpRankings(const disk_cache::RankingsNode& rankings) { in DumpRankings() argument 244 printf("next: 0x%x\n", rankings.next); in DumpRankings() 245 printf("prev: 0x%x\n", rankings.prev); in DumpRankings() 246 printf("entry: 0x%x\n", rankings.contents); in DumpRankings() 247 printf("dirty: %d\n", rankings.dirty); in DumpRankings() 248 printf("pointer: 0x%x\n", rankings.dummy); in DumpRankings() 308 disk_cache::RankingsNode rankings; in DumpContents() local [all …]
|
/external/chromium/net/data/cache_tests/list_loop/ |
D | contents.txt | 33 rankings: 54 rankings: 75 rankings: 96 rankings: 117 rankings: 138 rankings: 159 rankings: 180 rankings:
|
/external/chromium/net/data/cache_tests/bad_rankings2/ |
D | contents.txt | 26 rankings: 47 rankings:
|
/external/chromium/net/data/cache_tests/bad_rankings/ |
D | contents.txt | 26 rankings: 47 rankings:
|
/external/chromium/net/data/cache_tests/bad_entry/ |
D | contents.txt | 26 rankings: 47 rankings:
|
/external/chromium/net/data/cache_tests/dirty_entry2/ |
D | contents.txt | 26 rankings: 47 rankings:
|
/external/chromium/net/data/cache_tests/dirty_entry/ |
D | contents.txt | 26 rankings: 47 rankings:
|
/external/chromium/net/ |
D | net.scons | 358 'disk_cache/rankings.cc', 359 'disk_cache/rankings.h',
|
D | net.gyp | 265 'disk_cache/rankings.cc', 266 'disk_cache/rankings.h',
|
/external/chromium/ |
D | Android.mk | 194 net/disk_cache/rankings.cc \
|