| Index: components/offline_pages/background/request_coordinator.h
|
| diff --git a/components/offline_pages/background/request_coordinator.h b/components/offline_pages/background/request_coordinator.h
|
| index 2b874332bc58508c60d21a306186a16b792aed2c..4afa2bfd5c9af9edef471355868d370f75ff04f7 100644
|
| --- a/components/offline_pages/background/request_coordinator.h
|
| +++ b/components/offline_pages/background/request_coordinator.h
|
| @@ -65,10 +65,15 @@ class RequestCoordinator : public KeyedService, public RequestNotifier {
|
| bool SavePageLater(
|
| const GURL& url, const ClientId& client_id, bool user_reqeusted);
|
|
|
| + // Callback specifying which request IDs were actually removed.
|
| + typedef base::Callback<void(const std::vector<SavePageRequest>&)>
|
| + RequestsRemovedCallback;
|
| +
|
| // Remove a list of requests by |request_id|. This removes requests from the
|
| // request queue, but does not cancel an in-progress pre-render.
|
| // TODO(petewil): Add code to cancel an in-progress pre-render.
|
| - void RemoveRequests(const std::vector<int64_t>& request_ids);
|
| + void RemoveRequests(const std::vector<int64_t>& request_ids,
|
| + const RequestsRemovedCallback& callback);
|
|
|
| // Pause a list of requests by |request_id|. This will change the state
|
| // in the request queue so the request cannot be started.
|
| @@ -164,6 +169,11 @@ class RequestCoordinator : public KeyedService, public RequestNotifier {
|
| const RequestQueue::UpdateMultipleRequestResults& result,
|
| const std::vector<SavePageRequest>& requests);
|
|
|
| + void ExplicitlyRemoveRequestsCallback(
|
| + const RequestsRemovedCallback& callback,
|
| + const RequestQueue::UpdateMultipleRequestResults& results,
|
| + const std::vector<SavePageRequest>& requests);
|
| +
|
| void RemoveRequestsCallback(
|
| const RequestQueue::UpdateMultipleRequestResults& results,
|
| const std::vector<SavePageRequest>& requests);
|
|
|