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

Unified Diff: net/disk_cache/sparse_control.h

Issue 146005: Disk Cache: Implement GetAvailableRange for the regular disk cache.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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/sparse_control.h
===================================================================
--- net/disk_cache/sparse_control.h (revision 18781)
+++ net/disk_cache/sparse_control.h (working copy)
@@ -34,7 +34,8 @@
enum SparseOperation {
kNoOperation,
kReadOperation,
- kWriteOperation
+ kWriteOperation,
+ kGetRangeOperation
};
explicit SparseControl(EntryImpl* entry)
@@ -109,6 +110,9 @@
// work.
bool DoChildIO();
+ // Performs the required work for GetAvailableRange for one child.
+ int DoGetAvailableRange();
+
// Performs the required work after a single IO operations finishes.
void DoChildIOCompleted(int result);
@@ -124,6 +128,7 @@
bool pending_; // True if any child IO operation returned pending.
bool finished_;
bool init_;
+ bool range_found_; // True if GetAvailableRange found something.
SparseHeader sparse_header_; // Data about the children of entry_.
Bitmap children_map_; // The actual bitmap of children.

Powered by Google App Engine
This is Rietveld 408576698