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

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: 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 for (int64_t request_id : request_ids_) { 68 for (int64_t request_id : request_ids_) {
69 update_result->item_statuses.push_back( 69 update_result->item_statuses.push_back(
70 std::make_pair(request_id, ItemActionStatus::NOT_FOUND)); 70 std::make_pair(request_id, ItemActionStatus::NOT_FOUND));
71 } 71 }
72 72
73 callback_.Run(std::move(update_result)); 73 callback_.Run(std::move(update_result));
74 TaskComplete(); 74 TaskComplete();
75 } 75 }
76 76
77 } // namespace offline_pages 77 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698