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

Side by Side Diff: components/offline_pages/background/request_queue_in_memory_store.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/offline_pages/background/request_queue_in_memory_store.h" 5 #include "components/offline_pages/background/request_queue_in_memory_store.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/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "components/offline_pages/background/save_page_request.h" 10 #include "components/offline_pages/background/save_page_request.h"
11 11
12 namespace offline_pages { 12 namespace offline_pages {
13 13
14 RequestQueueInMemoryStore::RequestQueueInMemoryStore() {} 14 RequestQueueInMemoryStore::RequestQueueInMemoryStore() {}
15 15
16 RequestQueueInMemoryStore::~RequestQueueInMemoryStore() {} 16 RequestQueueInMemoryStore::~RequestQueueInMemoryStore() {}
17 17
18 void RequestQueueInMemoryStore::GetRequests( 18 void RequestQueueInMemoryStore::GetRequests(
19 const GetRequestsCallback& callback) { 19 const GetRequestsCallback& callback) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 FROM_HERE, base::Bind(callback, result, count)); 60 FROM_HERE, base::Bind(callback, result, count));
61 } 61 }
62 62
63 void RequestQueueInMemoryStore::Reset(const ResetCallback& callback) { 63 void RequestQueueInMemoryStore::Reset(const ResetCallback& callback) {
64 requests_.clear(); 64 requests_.clear();
65 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, 65 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
66 base::Bind(callback, true)); 66 base::Bind(callback, true));
67 } 67 }
68 68
69 } // namespace offline_pages 69 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698