OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "webkit/appcache/mock_appcache_service.h" |
| 6 |
| 7 #include "base/message_loop.h" |
| 8 |
| 9 namespace appcache { |
| 10 |
| 11 static void DeferredCallCallback(net::CompletionCallback* callback, int rv) { |
| 12 callback->Run(rv); |
| 13 } |
| 14 |
| 15 void MockAppCacheService::DeleteAppCachesForOrigin( |
| 16 const GURL& origin, net::CompletionCallback* callback) { |
| 17 ++delete_called_count_; |
| 18 MessageLoop::current()->PostTask( |
| 19 FROM_HERE, |
| 20 NewRunnableFunction(&DeferredCallCallback, callback, |
| 21 mock_delete_appcaches_for_origin_result_)); |
| 22 } |
| 23 |
| 24 } // namespace appcache |
OLD | NEW |