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/tools/crash_cache/crash_cache.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/tools/crash_cache/crash_cache.cc')
-rw-r--r-- | net/tools/crash_cache/crash_cache.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/tools/crash_cache/crash_cache.cc b/net/tools/crash_cache/crash_cache.cc index 57fa32c..45bcb87 100644 --- a/net/tools/crash_cache/crash_cache.cc +++ b/net/tools/crash_cache/crash_cache.cc @@ -126,7 +126,7 @@ bool CreateTargetFolder(const FilePath& path, RankCrashes action, // Makes sure that any pending task is processed. void FlushQueue(disk_cache::Backend* cache) { - TestCompletionCallback cb; + TestOldCompletionCallback cb; int rv = reinterpret_cast<disk_cache::BackendImpl*>(cache)->FlushQueueForTest(&cb); cb.GetResult(rv); // Ignore the result; @@ -135,7 +135,7 @@ void FlushQueue(disk_cache::Backend* cache) { // Generates the files for an empty and one item cache. int SimpleInsert(const FilePath& path, RankCrashes action, base::Thread* cache_thread) { - TestCompletionCallback cb; + TestOldCompletionCallback cb; disk_cache::Backend* cache; int rv = disk_cache::CreateCacheBackend(net::DISK_CACHE, path, 0, false, cache_thread->message_loop_proxy(), @@ -175,7 +175,7 @@ int SimpleRemove(const FilePath& path, RankCrashes action, DCHECK(action >= disk_cache::REMOVE_ONE_1); DCHECK(action <= disk_cache::REMOVE_TAIL_3); - TestCompletionCallback cb; + TestOldCompletionCallback cb; disk_cache::Backend* cache; // Use a simple LRU for eviction. int rv = disk_cache::CreateCacheBackend(net::MEDIA_CACHE, path, 0, false, @@ -218,7 +218,7 @@ int HeadRemove(const FilePath& path, RankCrashes action, DCHECK(action >= disk_cache::REMOVE_HEAD_1); DCHECK(action <= disk_cache::REMOVE_HEAD_4); - TestCompletionCallback cb; + TestOldCompletionCallback cb; disk_cache::Backend* cache; // Use a simple LRU for eviction. int rv = disk_cache::CreateCacheBackend(net::MEDIA_CACHE, path, 0, false, @@ -264,7 +264,7 @@ int LoadOperations(const FilePath& path, RankCrashes action, if (!cache || !cache->SetMaxSize(0x100000)) return GENERIC; - TestCompletionCallback cb; + TestOldCompletionCallback cb; int rv = cache->Init(&cb); if (cb.GetResult(rv) != net::OK || cache->GetEntryCount()) return GENERIC; |