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/http/partial_data.cc | |
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/http/partial_data.cc')
-rw-r--r-- | net/http/partial_data.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/http/partial_data.cc b/net/http/partial_data.cc index f991a95..290c0e7 100644 --- a/net/http/partial_data.cc +++ b/net/http/partial_data.cc @@ -66,7 +66,7 @@ class PartialData::Core { PartialData* owner_; int64 start_; - net::CompletionCallbackImpl<Core> callback_; + net::OldCompletionCallbackImpl<Core> callback_; DISALLOW_COPY_AND_ASSIGN(Core); }; @@ -159,7 +159,7 @@ void PartialData::RestoreHeaders(HttpRequestHeaders* headers) const { } int PartialData::ShouldValidateCache(disk_cache::Entry* entry, - CompletionCallback* callback) { + OldCompletionCallback* callback) { DCHECK_GE(current_range_start_, 0); // Scan the disk cache for the first cached portion within this range. @@ -417,7 +417,7 @@ void PartialData::FixContentLength(HttpResponseHeaders* headers) { } int PartialData::CacheRead(disk_cache::Entry* entry, IOBuffer* data, - int data_len, CompletionCallback* callback) { + int data_len, OldCompletionCallback* callback) { int read_len = std::min(data_len, cached_min_len_); if (!read_len) return 0; @@ -437,7 +437,7 @@ int PartialData::CacheRead(disk_cache::Entry* entry, IOBuffer* data, } int PartialData::CacheWrite(disk_cache::Entry* entry, IOBuffer* data, - int data_len, CompletionCallback* callback) { + int data_len, OldCompletionCallback* callback) { DVLOG(3) << "To write: " << data_len; if (sparse_entry_) { return entry->WriteSparseData(current_range_start_, data, data_len, @@ -484,7 +484,7 @@ void PartialData::GetAvailableRangeCompleted(int result, int64 start) { if (result >= 0) result = 1; // Return success, go ahead and validate the entry. - CompletionCallback* cb = callback_; + OldCompletionCallback* cb = callback_; callback_ = NULL; cb->Run(result); } |