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

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

Issue 2197573003: Provide API in RequestCoordinator to remove results by client ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment changes per feedback 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 f3cae845b337e01f720fb779c92154c2ff89bd3b..fd4cc54a982b8047e3dad86a2683605782148880 100644
--- a/components/offline_pages/background/request_queue.cc
+++ b/components/offline_pages/background/request_queue.cc
@@ -135,6 +135,13 @@ void RequestQueue::RemoveRequest(int64_t request_id,
store_->RemoveRequests(request_ids, base::Bind(RemoveRequestDone, callback));
}
+void RequestQueue::RemoveRequestsByClientId(
+ const std::vector<ClientId>& client_ids,
+ const UpdateRequestCallback& callback) {
+ store_->RemoveRequestsByClientId(client_ids,
+ base::Bind(RemoveRequestDone, callback));
+}
+
void RequestQueue::PurgeRequests(const PurgeRequestsCallback& callback) {}
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698