blob: d87e4f1dd236fa0988c583c6dc422629f4ed6ae0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|