| 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/request_picker.h" | 5 #include "components/offline_pages/background/request_picker.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "components/offline_pages/background/save_page_request.h" | 9 #include "components/offline_pages/background/save_page_request.h" |
| 10 | 10 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 } | 257 } |
| 258 | 258 |
| 259 // Callback used after expired requests are deleted from the queue and notifies | 259 // Callback used after expired requests are deleted from the queue and notifies |
| 260 // the coordinator. | 260 // the coordinator. |
| 261 void RequestPicker::OnRequestExpired( | 261 void RequestPicker::OnRequestExpired( |
| 262 const RequestQueue::UpdateMultipleRequestResults& results, | 262 const RequestQueue::UpdateMultipleRequestResults& results, |
| 263 const std::vector<SavePageRequest>& requests) { | 263 const std::vector<SavePageRequest>& requests) { |
| 264 for (auto request : requests) | 264 for (auto request : requests) |
| 265 notifier_->NotifyCompleted(request, | 265 notifier_->NotifyCompleted( |
| 266 RequestCoordinator::SavePageStatus::EXPIRED); | 266 request, RequestCoordinator::BackgroundSavePageResult::EXPIRED); |
| 267 } | 267 } |
| 268 | 268 |
| 269 } // namespace offline_pages | 269 } // namespace offline_pages |
| OLD | NEW |