Index: net/disk_cache/disk_cache.h |
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h |
index 3e0efa6eb748b3cda4f4e8041c3f3b4bc24845fa..8fc74b70c05022e03db5395b25a58dbf4a72f483 100644 |
--- a/net/disk_cache/disk_cache.h |
+++ b/net/disk_cache/disk_cache.h |
@@ -78,6 +78,8 @@ class NET_EXPORT Backend { |
// |entry| must remain valid until the operation completes. |
virtual int OpenEntry(const std::string& key, Entry** entry, |
OldCompletionCallback* callback) = 0; |
+ virtual int OpenEntry(const std::string& key, Entry** entry, |
+ const net::CompletionCallback& callback) = 0; |
// Creates a new entry. Upon success, the out param holds a pointer to an |
// Entry object representing the newly created disk cache entry. When the |
@@ -87,6 +89,8 @@ class NET_EXPORT Backend { |
// receive the |entry| must remain valid until the operation completes. |
virtual int CreateEntry(const std::string& key, Entry** entry, |
OldCompletionCallback* callback) = 0; |
+ virtual int CreateEntry(const std::string& key, Entry** entry, |
+ const net::CompletionCallback& callback) = 0; |
// Marks the entry, specified by the given key, for deletion. The return value |
// is a net error code. If this method returns ERR_IO_PENDING, the |callback| |
@@ -179,6 +183,8 @@ class NET_EXPORT Entry { |
// performed from the callback code. |
virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, |
OldCompletionCallback* completion_callback) = 0; |
+ virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, |
+ const net::CompletionCallback& completion_callback) = 0; |
// Copies cache data from the given buffer of length |buf_len|. If |
// completion_callback is null, then this call blocks until the write |
@@ -196,6 +202,9 @@ class NET_EXPORT Entry { |
virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, |
OldCompletionCallback* completion_callback, |
bool truncate) = 0; |
+ virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, |
+ const net::CompletionCallback& completion_callback, |
+ bool truncate) = 0; |
// Sparse entries support: |
// |