| Index: net/disk_cache/blockfile/sparse_control_v3.h
|
| diff --git a/net/disk_cache/blockfile/sparse_control_v3.h b/net/disk_cache/blockfile/sparse_control_v3.h
|
| index 495ae191612c91b252e64828461dfea56f48b62a..c6710c56cc86b88a045576c6cc068eb91fa6c5a2 100644
|
| --- a/net/disk_cache/blockfile/sparse_control_v3.h
|
| +++ b/net/disk_cache/blockfile/sparse_control_v3.h
|
| @@ -54,8 +54,11 @@ class SparseControl {
|
| // to use for asynchronous operations. See the description of the Read /
|
| // WriteSparseData for details about the arguments. The return value is the
|
| // number of bytes read or written, or a net error code.
|
| - int StartIO(SparseOperation op, int64 offset, net::IOBuffer* buf,
|
| - int buf_len, const CompletionCallback& callback);
|
| + int StartIO(SparseOperation op,
|
| + int64 offset,
|
| + net::IOBuffer* buf,
|
| + int buf_len,
|
| + const CompletionCallback& callback);
|
|
|
| // Implements Entry::GetAvailableRange().
|
| int GetAvailableRange(int64 offset, int len, int64* start);
|
| @@ -93,7 +96,7 @@ class SparseControl {
|
| // Continues the current operation (open) without a current child.
|
| bool ContinueWithoutChild(const std::string& key);
|
|
|
| - // Writes to disk the tracking information for this entry.
|
| + // Writes to disk the tracking information for this entry.
|
| void WriteSparseData();
|
|
|
| // Performs a single operation with the current child. Returns true when we
|
| @@ -151,20 +154,20 @@ class SparseControl {
|
| bool finished_;
|
| bool init_;
|
| bool range_found_; // True if GetAvailableRange found something.
|
| - bool abort_; // True if we should abort the current operation ASAP.
|
| + bool abort_; // True if we should abort the current operation ASAP.
|
|
|
| SparseHeader sparse_header_; // Data about the children of entry_.
|
| - Bitmap children_map_; // The actual bitmap of children.
|
| - SparseData child_data_; // Parent and allocation map of child_.
|
| - Bitmap child_map_; // The allocation map as a bitmap.
|
| + Bitmap children_map_; // The actual bitmap of children.
|
| + SparseData child_data_; // Parent and allocation map of child_.
|
| + Bitmap child_map_; // The allocation map as a bitmap.
|
|
|
| CompletionCallback user_callback_;
|
| std::vector<CompletionCallback> abort_callbacks_;
|
| int64 offset_; // Current sparse offset.
|
| scoped_refptr<net::DrainableIOBuffer> user_buf_;
|
| - int buf_len_; // Bytes to read or write.
|
| + int buf_len_; // Bytes to read or write.
|
| int child_offset_; // Offset to use for the current child.
|
| - int child_len_; // Bytes to read or write for this child.
|
| + int child_len_; // Bytes to read or write for this child.
|
| int result_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SparseControl);
|
|
|