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

Unified Diff: net/disk_cache/entry_impl.h

Issue 8065015: Disk Cache: Improve handling of dirty entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 102424)
+++ net/disk_cache/entry_impl.h (working copy)
@@ -104,9 +104,17 @@
// Fixes this entry so it can be treated as valid (to delete it).
void SetPointerForInvalidEntry(int32 new_id);
+ // Returns true if this entry is so meesed up that not everything is going to
+ // be removed.
+ bool LeaveRankingsBehind();
+
// Returns false if the entry is clearly invalid.
bool SanityCheck();
+ bool DataSanityCheck();
+ // Attempts to make this entry reachable though the key.
+ void FixForDelete();
+
// Handle the pending asynchronous IO count.
void IncrementIoCount();
void DecrementIoCount();

Powered by Google App Engine
This is Rietveld 408576698