summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/mock_appcache_storage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/mock_appcache_storage.cc')
-rw-r--r--webkit/appcache/mock_appcache_storage.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/webkit/appcache/mock_appcache_storage.cc b/webkit/appcache/mock_appcache_storage.cc
index d176288..cf93338 100644
--- a/webkit/appcache/mock_appcache_storage.cc
+++ b/webkit/appcache/mock_appcache_storage.cc
@@ -50,7 +50,7 @@ void MockAppCacheStorage::LoadCache(int64 id, Delegate* delegate) {
if (ShouldCacheLoadAppearAsync(cache)) {
ScheduleTask(method_factory_.NewRunnableMethod(
&MockAppCacheStorage::ProcessLoadCache,
- id, GetOrCreateDelegateReference(delegate)));
+ id, make_scoped_refptr(GetOrCreateDelegateReference(delegate))));
return;
}
ProcessLoadCache(id, GetOrCreateDelegateReference(delegate));
@@ -63,7 +63,8 @@ void MockAppCacheStorage::LoadOrCreateGroup(
if (ShouldGroupLoadAppearAsync(group)) {
ScheduleTask(method_factory_.NewRunnableMethod(
&MockAppCacheStorage::ProcessLoadOrCreateGroup,
- manifest_url, GetOrCreateDelegateReference(delegate)));
+ manifest_url,
+ make_scoped_refptr(GetOrCreateDelegateReference(delegate))));
return;
}
ProcessLoadOrCreateGroup(
@@ -78,7 +79,9 @@ void MockAppCacheStorage::StoreGroupAndNewestCache(
// Always make this operation look async.
ScheduleTask(method_factory_.NewRunnableMethod(
&MockAppCacheStorage::ProcessStoreGroupAndNewestCache,
- group, newest_cache, GetOrCreateDelegateReference(delegate)));
+ make_scoped_refptr(group),
+ make_scoped_refptr(newest_cache),
+ make_scoped_refptr(GetOrCreateDelegateReference(delegate))));
}
void MockAppCacheStorage::FindResponseForMainRequest(
@@ -88,7 +91,8 @@ void MockAppCacheStorage::FindResponseForMainRequest(
// Always make this operation look async.
ScheduleTask(method_factory_.NewRunnableMethod(
&MockAppCacheStorage::ProcessFindResponseForMainRequest,
- url, GetOrCreateDelegateReference(delegate)));
+ url,
+ make_scoped_refptr(GetOrCreateDelegateReference(delegate))));
}
void MockAppCacheStorage::FindResponseForSubRequest(
@@ -132,7 +136,8 @@ void MockAppCacheStorage::MakeGroupObsolete(
// Always make this method look async.
ScheduleTask(method_factory_.NewRunnableMethod(
&MockAppCacheStorage::ProcessMakeGroupObsolete,
- group, GetOrCreateDelegateReference(delegate)));
+ make_scoped_refptr(group),
+ make_scoped_refptr(GetOrCreateDelegateReference(delegate))));
}
AppCacheResponseReader* MockAppCacheStorage::CreateResponseReader(