Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: net/disk_cache/backend_impl.cc

Issue 159643: Disk cache: Remove remaining uses of RankingsNode.pointer.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/backend_impl.cc
===================================================================
--- net/disk_cache/backend_impl.cc (revision 21923)
+++ net/disk_cache/backend_impl.cc (working copy)
@@ -762,16 +762,16 @@
DecreaseNumRefs();
}
-bool BackendImpl::IsOpen(CacheRankingsBlock* rankings) const {
+EntryImpl* BackendImpl::GetOpenEntry(CacheRankingsBlock* rankings) const {
DCHECK(rankings->HasData());
EntriesMap::const_iterator it =
open_entries_.find(rankings->Data()->contents);
if (it != open_entries_.end()) {
// We have this entry in memory.
- return rankings->Data()->pointer == it->second;
+ return it->second;
}
- return false;
+ return NULL;
}
int32 BackendImpl::GetCurrentEntryId() const {
@@ -1641,7 +1641,7 @@
bool BackendImpl::CheckEntry(EntryImpl* cache_entry) {
RankingsNode* rankings = cache_entry->rankings()->Data();
- return !rankings->pointer;
+ return !rankings->dummy;
}
} // namespace disk_cache

Powered by Google App Engine
This is Rietveld 408576698