diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-01 20:38:10 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-01 20:38:10 +0000 |
commit | f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8 (patch) | |
tree | 6ccdd87ccfc89adbcb372c517559fa61fbc6c6b2 /net/disk_cache/sparse_control.h | |
parent | d1666539b57bf8552e203d355fd09909d36f9732 (diff) | |
download | chromium_src-f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8.zip chromium_src-f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8.tar.gz chromium_src-f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8.tar.bz2 |
Begin CompletionCallback switchover.
Rename CompletionCallback to OldCompletionCallback in preparation for introducing a new CompletionCallback based on base::Callback.
Also renames other CompletionCallback types like CancelableCompletionCallback and TestCompletionCallback and CompletionCallbackImpl. All using sed with s/CompletionCallback/OldCompletionCallback/g.
BUG=98719
TEST=none
Review URL: http://codereview.chromium.org/8070013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/sparse_control.h')
-rw-r--r-- | net/disk_cache/sparse_control.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/disk_cache/sparse_control.h b/net/disk_cache/sparse_control.h index 15704df..98829bd 100644 --- a/net/disk_cache/sparse_control.h +++ b/net/disk_cache/sparse_control.h @@ -59,7 +59,7 @@ class SparseControl { // 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, net::CompletionCallback* callback); + int buf_len, net::OldCompletionCallback* callback); // Implements Entry::GetAvailableRange(). int GetAvailableRange(int64 offset, int len, int64* start); @@ -70,7 +70,7 @@ class SparseControl { // Returns OK if the entry can be used for new IO or ERR_IO_PENDING if we are // busy. If the entry is busy, we'll invoke the callback when we are ready // again. See disk_cache::Entry::ReadyToUse() for more info. - int ReadyToUse(net::CompletionCallback* completion_callback); + int ReadyToUse(net::OldCompletionCallback* completion_callback); // Deletes the children entries of |entry|. static void DeleteChildren(EntryImpl* entry); @@ -159,9 +159,9 @@ class SparseControl { SparseData child_data_; // Parent and allocation map of child_. Bitmap child_map_; // The allocation map as a bitmap. - net::CompletionCallbackImpl<SparseControl> child_callback_; - net::CompletionCallback* user_callback_; - std::vector<net::CompletionCallback*> abort_callbacks_; + net::OldCompletionCallbackImpl<SparseControl> child_callback_; + net::OldCompletionCallback* user_callback_; + std::vector<net::OldCompletionCallback*> abort_callbacks_; int64 offset_; // Current sparse offset. scoped_refptr<net::DrainableIOBuffer> user_buf_; int buf_len_; // Bytes to read or write. |