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

Side by Side Diff: components/offline_pages/background/request_queue.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.h" 5 #include "components/offline_pages/background/request_queue.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/request_queue_store.h" 10 #include "components/offline_pages/background/request_queue_store.h"
11 #include "components/offline_pages/background/save_page_request.h" 11 #include "components/offline_pages/background/save_page_request.h"
12 12
13 namespace offline_pages { 13 namespace offline_pages {
14 14
15 namespace { 15 namespace {
16 // Completes the get requests call. 16 // Completes the get requests call.
17 void GetRequestsDone(const RequestQueue::GetRequestsCallback& callback, 17 void GetRequestsDone(const RequestQueue::GetRequestsCallback& callback,
18 bool success, 18 bool success,
19 const std::vector<SavePageRequest>& requests) { 19 const std::vector<SavePageRequest>& requests) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 void RequestQueue::RemoveRequest(int64_t request_id, 73 void RequestQueue::RemoveRequest(int64_t request_id,
74 const UpdateRequestCallback& callback) { 74 const UpdateRequestCallback& callback) {
75 std::vector<int64_t> request_ids{request_id}; 75 std::vector<int64_t> request_ids{request_id};
76 store_->RemoveRequests(request_ids, base::Bind(RemoveRequestDone, callback)); 76 store_->RemoveRequests(request_ids, base::Bind(RemoveRequestDone, callback));
77 } 77 }
78 78
79 void RequestQueue::PurgeRequests(const PurgeRequestsCallback& callback) {} 79 void RequestQueue::PurgeRequests(const PurgeRequestsCallback& callback) {}
80 80
81 } // namespace offline_pages 81 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698