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

Unified Diff: webkit/appcache/mock_appcache_service.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_service.h ('k') | webkit/appcache/mock_appcache_storage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/mock_appcache_service.cc
===================================================================
--- webkit/appcache/mock_appcache_service.cc (revision 0)
+++ webkit/appcache/mock_appcache_service.cc (revision 0)
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/appcache/mock_appcache_service.h"
+
+#include "base/message_loop.h"
+
+namespace appcache {
+
+static void DeferredCallCallback(net::CompletionCallback* callback, int rv) {
+ callback->Run(rv);
+}
+
+void MockAppCacheService::DeleteAppCachesForOrigin(
+ const GURL& origin, net::CompletionCallback* callback) {
+ ++delete_called_count_;
+ MessageLoop::current()->PostTask(
+ FROM_HERE,
+ NewRunnableFunction(&DeferredCallCallback, callback,
+ mock_delete_appcaches_for_origin_result_));
+}
+
+} // namespace appcache
Property changes on: webkit\appcache\mock_appcache_service.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/appcache/mock_appcache_service.h ('k') | webkit/appcache/mock_appcache_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698