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

Unified Diff: net/disk_cache/entry_impl.h

Issue 149218: Disk cache: Keep a map of all open entries.... (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/entry_impl.h
===================================================================
--- net/disk_cache/entry_impl.h (revision 19788)
+++ net/disk_cache/entry_impl.h (working copy)
@@ -76,10 +76,10 @@
// Reloads the rankings node information.
bool LoadNodeAddress();
- // Reloads the data for this entry. If there is already an object in memory
- // for the entry, the returned value is a pointer to that entry, otherwise
- // it is the passed in entry. On failure returns NULL.
- static EntryImpl* Update(EntryImpl* entry);
+ // Updates the stored data to reflect the run-time information for this entry.
+ // Returns false if the data could not be updated. The purpose of this method
+ // is to be able to detect entries that are currently in use.
+ bool Update();
// Returns true if this entry is marked as dirty on disk.
bool IsDirty(int32 current_id);

Powered by Google App Engine
This is Rietveld 408576698