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

Unified Diff: components/offline_pages/background/request_queue.cc

Issue 2221323003: Add an API to Pause and Resume background offlining requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit test break introduced by merge Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/background/request_queue.cc
diff --git a/components/offline_pages/background/request_queue.cc b/components/offline_pages/background/request_queue.cc
index e09b0d64cbc8d381222c52e93176a026d7a3c5de..6d1e8bf8a3925f99f087fb843bc70e7a3aa6b941 100644
--- a/components/offline_pages/background/request_queue.cc
+++ b/components/offline_pages/background/request_queue.cc
@@ -130,6 +130,14 @@ void RequestQueue::RemoveRequests(const std::vector<int64_t>& request_ids,
store_->RemoveRequests(request_ids, base::Bind(RemoveRequestsDone, callback));
}
+void RequestQueue::ChangeRequestsState(
+ const std::vector<int64_t>& request_ids,
+ const SavePageRequest::RequestState new_state,
+ const UpdateRequestCallback& callback) {
+ store_->ChangeRequestsState(request_ids, new_state,
+ base::Bind(UpdateRequestDone, callback));
+}
+
void RequestQueue::PurgeRequests(const PurgeRequestsCallback& callback) {}
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698