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

Side by Side Diff: content/browser/appcache/mock_appcache_service.cc

Issue 1967823004: Fix include path for moved thread_task_runner_handle.h header in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/appcache/mock_appcache_service.h" 5 #include "content/browser/appcache/mock_appcache_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 static void DeferredCallCallback( 14 static void DeferredCallCallback(
15 const net::CompletionCallback& callback, int rv) { 15 const net::CompletionCallback& callback, int rv) {
16 callback.Run(rv); 16 callback.Run(rv);
17 } 17 }
18 18
19 void MockAppCacheService::DeleteAppCachesForOrigin( 19 void MockAppCacheService::DeleteAppCachesForOrigin(
20 const GURL& origin, const net::CompletionCallback& callback) { 20 const GURL& origin, const net::CompletionCallback& callback) {
21 ++delete_called_count_; 21 ++delete_called_count_;
22 base::ThreadTaskRunnerHandle::Get()->PostTask( 22 base::ThreadTaskRunnerHandle::Get()->PostTask(
23 FROM_HERE, base::Bind(&DeferredCallCallback, callback, 23 FROM_HERE, base::Bind(&DeferredCallCallback, callback,
24 mock_delete_appcaches_for_origin_result_)); 24 mock_delete_appcaches_for_origin_result_));
25 } 25 }
26 26
27 } // namespace content 27 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_url_request_job_unittest.cc ('k') | content/browser/appcache/mock_appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698