Index: net/disk_cache/blockfile/file.h |
diff --git a/net/disk_cache/blockfile/file.h b/net/disk_cache/blockfile/file.h |
index 9425d598501c035d9e50297223a3c63fb4ce60c5..42b93b264b49cd00b227b9136c231775d1956211 100644 |
--- a/net/disk_cache/blockfile/file.h |
+++ b/net/disk_cache/blockfile/file.h |
@@ -31,6 +31,7 @@ class FileIOCallback { |
// Simple wrapper around a file that allows asynchronous operations. |
class NET_EXPORT_PRIVATE File : public base::RefCounted<File> { |
friend class base::RefCounted<File>; |
+ |
public: |
File(); |
// mixed_mode set to true enables regular synchronous operations for the file. |
@@ -54,10 +55,16 @@ class NET_EXPORT_PRIVATE File : public base::RefCounted<File> { |
// Performs asynchronous IO. callback will be called when the IO completes, |
// as an APC on the thread that queued the operation. |
- bool Read(void* buffer, size_t buffer_len, size_t offset, |
- FileIOCallback* callback, bool* completed); |
- bool Write(const void* buffer, size_t buffer_len, size_t offset, |
- FileIOCallback* callback, bool* completed); |
+ bool Read(void* buffer, |
+ size_t buffer_len, |
+ size_t offset, |
+ FileIOCallback* callback, |
+ bool* completed); |
+ bool Write(const void* buffer, |
+ size_t buffer_len, |
+ size_t offset, |
+ FileIOCallback* callback, |
+ bool* completed); |
// Sets the file's length. The file is truncated or extended with zeros to |
// the new length. |
@@ -79,8 +86,11 @@ class NET_EXPORT_PRIVATE File : public base::RefCounted<File> { |
private: |
// Performs the actual asynchronous write. If notify is set and there is no |
// callback, the call will be re-synchronized. |
- bool AsyncWrite(const void* buffer, size_t buffer_len, size_t offset, |
- FileIOCallback* callback, bool* completed); |
+ bool AsyncWrite(const void* buffer, |
+ size_t buffer_len, |
+ size_t offset, |
+ FileIOCallback* callback, |
+ bool* completed); |
// Infrastructure for async IO. |
int DoRead(void* buffer, size_t buffer_len, size_t offset); |
@@ -89,7 +99,7 @@ class NET_EXPORT_PRIVATE File : public base::RefCounted<File> { |
bool init_; |
bool mixed_; |
- base::File base_file_; // Regular, asynchronous IO handle. |
+ base::File base_file_; // Regular, asynchronous IO handle. |
base::File sync_base_file_; // Synchronous IO handle. |
DISALLOW_COPY_AND_ASSIGN(File); |