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

Side by Side Diff: components/offline_pages/core/background/change_requests_state_task.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: more rebase Created 4 years 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/change_requests_state_task.h" 5 #include "components/offline_pages/core/background/change_requests_state_task.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 8
9 namespace offline_pages { 9 namespace offline_pages {
10 10
11 ChangeRequestsStateTask::ChangeRequestsStateTask( 11 ChangeRequestsStateTask::ChangeRequestsStateTask(
12 RequestQueueStore* store, 12 RequestQueueStore* store,
13 const std::vector<int64_t>& request_ids, 13 const std::vector<int64_t>& request_ids,
14 const SavePageRequest::RequestState new_state, 14 const SavePageRequest::RequestState new_state,
15 const RequestQueueStore::UpdateCallback& callback) 15 const RequestQueueStore::UpdateCallback& callback)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 std::unique_ptr<UpdateRequestsResult> result, 81 std::unique_ptr<UpdateRequestsResult> result,
82 ItemActionStatus status) { 82 ItemActionStatus status) {
83 // Mark items as not found, if they are still in the request IDs set. 83 // Mark items as not found, if they are still in the request IDs set.
84 for (int64_t request_id : request_ids_) 84 for (int64_t request_id : request_ids_)
85 result->item_statuses.push_back(std::make_pair(request_id, status)); 85 result->item_statuses.push_back(std::make_pair(request_id, status));
86 callback_.Run(std::move(result)); 86 callback_.Run(std::move(result));
87 TaskComplete(); 87 TaskComplete();
88 } 88 }
89 89
90 } // namespace offline_pages 90 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698