| Index: net/disk_cache/blockfile/in_flight_backend_io.h
|
| diff --git a/net/disk_cache/blockfile/in_flight_backend_io.h b/net/disk_cache/blockfile/in_flight_backend_io.h
|
| index 70438ab81cebaf0b675f6e958074c75261ccdebf..18beb820426a53a8aad19ef31905352f49e5a589 100644
|
| --- a/net/disk_cache/blockfile/in_flight_backend_io.h
|
| +++ b/net/disk_cache/blockfile/in_flight_backend_io.h
|
| @@ -24,7 +24,8 @@ class EntryImpl;
|
| // is being bounced between threads.
|
| class BackendIO : public BackgroundIO {
|
| public:
|
| - BackendIO(InFlightIO* controller, BackendImpl* backend,
|
| + BackendIO(InFlightIO* controller,
|
| + BackendImpl* backend,
|
| const net::CompletionCallback& callback);
|
|
|
| // Runs the actual operation on the background thread.
|
| @@ -62,13 +63,24 @@ class BackendIO : public BackgroundIO {
|
| void DoomEntryImpl(EntryImpl* entry);
|
| void FlushQueue(); // Dummy operation.
|
| void RunTask(const base::Closure& task);
|
| - void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
|
| + void ReadData(EntryImpl* entry,
|
| + int index,
|
| + int offset,
|
| + net::IOBuffer* buf,
|
| int buf_len);
|
| - void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
|
| - int buf_len, bool truncate);
|
| - void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
|
| + void WriteData(EntryImpl* entry,
|
| + int index,
|
| + int offset,
|
| + net::IOBuffer* buf,
|
| + int buf_len,
|
| + bool truncate);
|
| + void ReadSparseData(EntryImpl* entry,
|
| + int64 offset,
|
| + net::IOBuffer* buf,
|
| int buf_len);
|
| - void WriteSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
|
| + void WriteSparseData(EntryImpl* entry,
|
| + int64 offset,
|
| + net::IOBuffer* buf,
|
| int buf_len);
|
| void GetAvailableRange(EntryImpl* entry, int64 offset, int len, int64* start);
|
| void CancelSparseIO(EntryImpl* entry);
|
| @@ -152,9 +164,11 @@ class InFlightBackendIO : public InFlightIO {
|
|
|
| // Proxied operations.
|
| void Init(const net::CompletionCallback& callback);
|
| - void OpenEntry(const std::string& key, Entry** entry,
|
| + void OpenEntry(const std::string& key,
|
| + Entry** entry,
|
| const net::CompletionCallback& callback);
|
| - void CreateEntry(const std::string& key, Entry** entry,
|
| + void CreateEntry(const std::string& key,
|
| + Entry** entry,
|
| const net::CompletionCallback& callback);
|
| void DoomEntry(const std::string& key,
|
| const net::CompletionCallback& callback);
|
| @@ -164,9 +178,11 @@ class InFlightBackendIO : public InFlightIO {
|
| const net::CompletionCallback& callback);
|
| void DoomEntriesSince(const base::Time initial_time,
|
| const net::CompletionCallback& callback);
|
| - void OpenNextEntry(void** iter, Entry** next_entry,
|
| + void OpenNextEntry(void** iter,
|
| + Entry** next_entry,
|
| const net::CompletionCallback& callback);
|
| - void OpenPrevEntry(void** iter, Entry** prev_entry,
|
| + void OpenPrevEntry(void** iter,
|
| + Entry** prev_entry,
|
| const net::CompletionCallback& callback);
|
| void EndEnumeration(void* iterator);
|
| void OnExternalCacheHit(const std::string& key);
|
| @@ -175,16 +191,33 @@ class InFlightBackendIO : public InFlightIO {
|
| void FlushQueue(const net::CompletionCallback& callback);
|
| void RunTask(const base::Closure& task,
|
| const net::CompletionCallback& callback);
|
| - void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
|
| - int buf_len, const net::CompletionCallback& callback);
|
| - void WriteData(
|
| - EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
|
| - int buf_len, bool truncate, const net::CompletionCallback& callback);
|
| - void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
|
| - int buf_len, const net::CompletionCallback& callback);
|
| - void WriteSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
|
| - int buf_len, const net::CompletionCallback& callback);
|
| - void GetAvailableRange(EntryImpl* entry, int64 offset, int len, int64* start,
|
| + void ReadData(EntryImpl* entry,
|
| + int index,
|
| + int offset,
|
| + net::IOBuffer* buf,
|
| + int buf_len,
|
| + const net::CompletionCallback& callback);
|
| + void WriteData(EntryImpl* entry,
|
| + int index,
|
| + int offset,
|
| + net::IOBuffer* buf,
|
| + int buf_len,
|
| + bool truncate,
|
| + const net::CompletionCallback& callback);
|
| + void ReadSparseData(EntryImpl* entry,
|
| + int64 offset,
|
| + net::IOBuffer* buf,
|
| + int buf_len,
|
| + const net::CompletionCallback& callback);
|
| + void WriteSparseData(EntryImpl* entry,
|
| + int64 offset,
|
| + net::IOBuffer* buf,
|
| + int buf_len,
|
| + const net::CompletionCallback& callback);
|
| + void GetAvailableRange(EntryImpl* entry,
|
| + int64 offset,
|
| + int len,
|
| + int64* start,
|
| const net::CompletionCallback& callback);
|
| void CancelSparseIO(EntryImpl* entry);
|
| void ReadyForSparseIO(EntryImpl* entry,
|
|
|