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

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: CR feedback per DougArnett Created 4 years, 5 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..b33a20f91d9a07e52fba4a023dcd639128e3e06f 100644
--- a/components/offline_pages/background/request_queue.cc
+++ b/components/offline_pages/background/request_queue.cc
@@ -135,6 +135,15 @@ void RequestQueue::RemoveRequest(int64_t request_id,
store_->RemoveRequests(request_ids, base::Bind(RemoveRequestDone, callback));
}
+ // Removes the request matching each id in |client_ids|. Result is returned
dougarnett 2016/08/01 18:28:35 drop method comment from .cc?
Pete Williamson 2016/08/01 23:23:07 Done.
+ // through |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