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

Unified Diff: net/disk_cache/backend_impl.h

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
« no previous file with comments | « no previous file | net/disk_cache/backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_impl.h
===================================================================
--- net/disk_cache/backend_impl.h (revision 21923)
+++ net/disk_cache/backend_impl.h (working copy)
@@ -105,9 +105,10 @@
// |address| is the cache address of the entry.
void CacheEntryDestroyed(Addr address);
- // Returns true if the data stored by the provided |rankings| points to an
- // open entry, false otherwise.
- bool IsOpen(CacheRankingsBlock* rankings) const;
+ // If the data stored by the provided |rankings| points to an open entry,
+ // returns a pointer to that entry, oterwise returns NULL. Note that this
Nicolas Sylvain 2009/07/30 18:37:28 otherwise
+ // method does NOT increase the ref counter for the entry.
+ EntryImpl* GetOpenEntry(CacheRankingsBlock* rankings) const;
// Returns the id being used on this run of the cache.
int32 GetCurrentEntryId() const;
« no previous file with comments | « no previous file | net/disk_cache/backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698