| Index: net/disk_cache/entry_impl.h
|
| diff --git a/net/disk_cache/entry_impl.h b/net/disk_cache/entry_impl.h
|
| index 62ec9d75cbe7a0303246dc25579fcbc93b7cf87a..6ff71521567de418cb523860cff635326dfdc54c 100644
|
| --- a/net/disk_cache/entry_impl.h
|
| +++ b/net/disk_cache/entry_impl.h
|
| @@ -41,8 +41,12 @@ class NET_EXPORT_PRIVATE EntryImpl
|
| void DoomImpl();
|
| int ReadDataImpl(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| OldCompletionCallback* callback);
|
| + int ReadDataImpl(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| + const net::CompletionCallback& callback);
|
| int WriteDataImpl(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| OldCompletionCallback* callback, bool truncate);
|
| + int WriteDataImpl(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| + const net::CompletionCallback& callback, bool truncate);
|
| int ReadSparseDataImpl(int64 offset, net::IOBuffer* buf, int buf_len,
|
| OldCompletionCallback* callback);
|
| int WriteSparseDataImpl(int64 offset, net::IOBuffer* buf, int buf_len,
|
| @@ -149,9 +153,15 @@ class NET_EXPORT_PRIVATE EntryImpl
|
| virtual int ReadData(
|
| int index, int offset, net::IOBuffer* buf, int buf_len,
|
| net::OldCompletionCallback* completion_callback) OVERRIDE;
|
| + virtual int ReadData(
|
| + int index, int offset, net::IOBuffer* buf, int buf_len,
|
| + const net::CompletionCallback& completion_callback) OVERRIDE;
|
| virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| net::OldCompletionCallback* completion_callback,
|
| bool truncate) OVERRIDE;
|
| + virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| + const net::CompletionCallback& completion_callback,
|
| + bool truncate) OVERRIDE;
|
| virtual int ReadSparseData(
|
| int64 offset, net::IOBuffer* buf, int buf_len,
|
| net::OldCompletionCallback* completion_callback) OVERRIDE;
|
| @@ -177,8 +187,12 @@ class NET_EXPORT_PRIVATE EntryImpl
|
| // separate functions to make logging of results simpler.
|
| int InternalReadData(int index, int offset, net::IOBuffer* buf,
|
| int buf_len, OldCompletionCallback* callback);
|
| + int InternalReadData(int index, int offset, net::IOBuffer* buf,
|
| + int buf_len, const net::CompletionCallback& callback);
|
| int InternalWriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| OldCompletionCallback* callback, bool truncate);
|
| + int InternalWriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| + const net::CompletionCallback& callback, bool truncate);
|
|
|
| // Initializes the storage for an internal or external data block.
|
| bool CreateDataBlock(int index, int size);
|
|
|