Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1804)

Unified Diff: webkit/appcache/mock_appcache_storage.cc

Issue 7031065: AppCache + Quota integration (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/appcache/mock_appcache_storage.h ('k') | webkit/appcache/webkit_appcache.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « webkit/appcache/mock_appcache_storage.h ('k') | webkit/appcache/webkit_appcache.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698