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

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

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.h
diff --git a/components/offline_pages/background/request_queue.h b/components/offline_pages/background/request_queue.h
index 869f072e1f69594fa99e2999fe624176568d180c..670817d60cc7e9aead25bedcd109d7c6a5c2a5d7 100644
--- a/components/offline_pages/background/request_queue.h
+++ b/components/offline_pages/background/request_queue.h
@@ -13,6 +13,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "components/offline_pages/offline_page_item.h"
namespace offline_pages {
@@ -76,6 +77,11 @@ class RequestQueue {
// |callback|.
void RemoveRequest(int64_t request_id, const UpdateRequestCallback& callback);
+ // Removes the requests matching the |client_ids|. Results are returned
+ // through |callback|.
+ void RemoveRequestsByClientId(const std::vector<ClientId>& client_id,
+ const UpdateRequestCallback& callback);
Dmitry Titov 2016/08/01 19:37:30 formatting - whitespace.
Pete Williamson 2016/08/01 23:23:07 Done.
+
void GetForUpdateDone(
const RequestQueue::UpdateRequestCallback& update_callback,
const SavePageRequest& update_request,

Powered by Google App Engine
This is Rietveld 408576698