Update V8 to version 4.6.55.
[chromium-blink-merge.git] / content / browser / appcache / mock_appcache_service.cc
blob4f3e2234248729b1a60b2e5252ab02080c8e7e9d
1 // Copyright 2014 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.
5 #include "content/browser/appcache/mock_appcache_service.h"
7 #include "base/bind.h"
8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h"
12 namespace content {
14 static void DeferredCallCallback(
15 const net::CompletionCallback& callback, int rv) {
16 callback.Run(rv);
19 void MockAppCacheService::DeleteAppCachesForOrigin(
20 const GURL& origin, const net::CompletionCallback& callback) {
21 ++delete_called_count_;
22 base::ThreadTaskRunnerHandle::Get()->PostTask(
23 FROM_HERE, base::Bind(&DeferredCallCallback, callback,
24 mock_delete_appcaches_for_origin_result_));
27 } // namespace content