OLD | NEW |
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/update_request_task.h" | 5 #include "components/offline_pages/core/background/update_request_task.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 | 11 |
12 namespace offline_pages { | 12 namespace offline_pages { |
13 | 13 |
14 UpdateRequestTask::UpdateRequestTask( | 14 UpdateRequestTask::UpdateRequestTask( |
15 RequestQueueStore* store, | 15 RequestQueueStore* store, |
(...skipping 25 matching lines...) Expand all Loading... |
41 | 41 |
42 bool UpdateRequestTask::ValidateReadResult(UpdateRequestsResult* result) { | 42 bool UpdateRequestTask::ValidateReadResult(UpdateRequestsResult* result) { |
43 return result->store_state == StoreState::LOADED && | 43 return result->store_state == StoreState::LOADED && |
44 result->item_statuses.at(0).first == request_id() && | 44 result->item_statuses.at(0).first == request_id() && |
45 result->item_statuses.at(0).second == ItemActionStatus::SUCCESS && | 45 result->item_statuses.at(0).second == ItemActionStatus::SUCCESS && |
46 result->updated_items.size() == 1 && | 46 result->updated_items.size() == 1 && |
47 result->updated_items.at(0).request_id() == request_id(); | 47 result->updated_items.at(0).request_id() == request_id(); |
48 } | 48 } |
49 | 49 |
50 } // namespace offline_pages | 50 } // namespace offline_pages |
OLD | NEW |