Index: webkit/appcache/mock_appcache_storage.cc |
=================================================================== |
--- webkit/appcache/mock_appcache_storage.cc (revision 88615) |
+++ webkit/appcache/mock_appcache_storage.cc (working copy) |
@@ -12,6 +12,7 @@ |
#include "webkit/appcache/appcache_entry.h" |
#include "webkit/appcache/appcache_group.h" |
#include "webkit/appcache/appcache_response.h" |
+#include "webkit/appcache/appcache_service.h" |
// This is a quick and easy 'mock' implementation of the storage interface |
// that doesn't put anything to disk. |
@@ -43,6 +44,12 @@ |
STLDeleteElements(&pending_tasks_); |
} |
+void MockAppCacheStorage::GetAllInfo(Delegate* delegate) { |
+ ScheduleTask(method_factory_.NewRunnableMethod( |
+ &MockAppCacheStorage::ProcessGetAllInfo, |
+ make_scoped_refptr(GetOrCreateDelegateReference(delegate)))); |
+} |
+ |
void MockAppCacheStorage::LoadCache(int64 id, Delegate* delegate) { |
DCHECK(delegate); |
AppCache* cache = working_set_.GetCache(id); |
@@ -164,6 +171,12 @@ |
} |
} |
+void MockAppCacheStorage::ProcessGetAllInfo( |
+ scoped_refptr<DelegateReference> delegate_ref) { |
+ if (delegate_ref->delegate) |
+ delegate_ref->delegate->OnAllInfo(simulated_appcache_info_); |
+} |
+ |
void MockAppCacheStorage::ProcessLoadCache( |
int64 id, scoped_refptr<DelegateReference> delegate_ref) { |
AppCache* cache = working_set_.GetCache(id); |