| Index: components/offline_pages/background/request_coordinator.cc
|
| diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc
|
| index cde6cede1f0810c79d13b57acbe799e983b330d1..8f257a0490b68315e661c656d14a4f3a4166fcb1 100644
|
| --- a/components/offline_pages/background/request_coordinator.cc
|
| +++ b/components/offline_pages/background/request_coordinator.cc
|
| @@ -124,6 +124,23 @@ void RequestCoordinator::RemoveRequests(
|
| weak_ptr_factory_.GetWeakPtr()));
|
| }
|
|
|
| +void RequestCoordinator::PauseRequests(
|
| + const std::vector<int64_t>& request_ids) {
|
| + queue_->ChangeRequestsState(
|
| + request_ids, SavePageRequest::RequestState::PAUSED,
|
| + base::Bind(&RequestCoordinator::UpdateMultipleRequestCallback,
|
| + weak_ptr_factory_.GetWeakPtr()));
|
| +}
|
| +
|
| +void RequestCoordinator::ResumeRequests(
|
| + const std::vector<int64_t>& request_ids) {
|
| + queue_->ChangeRequestsState(
|
| + request_ids, SavePageRequest::RequestState::AVAILABLE,
|
| + base::Bind(&RequestCoordinator::UpdateMultipleRequestCallback,
|
| + weak_ptr_factory_.GetWeakPtr()));
|
| + // TODO: Should we also schedule a task, in case there is not one scheduled?
|
| +}
|
| +
|
| void RequestCoordinator::AddRequestResultCallback(
|
| RequestQueue::AddRequestResult result,
|
| const SavePageRequest& request) {
|
|
|