| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 void AddRequestResultCallback(RequestQueue::AddRequestResult result, | 223 void AddRequestResultCallback(RequestQueue::AddRequestResult result, |
| 224 const SavePageRequest& request); | 224 const SavePageRequest& request); |
| 225 | 225 |
| 226 // Receives the result of update and delete requests to the request queue. | 226 // Receives the result of update and delete requests to the request queue. |
| 227 void UpdateRequestCallback(const ClientId& client_id, | 227 void UpdateRequestCallback(const ClientId& client_id, |
| 228 RequestQueue::UpdateRequestResult result); | 228 RequestQueue::UpdateRequestResult result); |
| 229 | 229 |
| 230 void UpdateMultipleRequestsCallback( | 230 void UpdateMultipleRequestsCallback( |
| 231 std::unique_ptr<UpdateRequestsResult> result); | 231 std::unique_ptr<UpdateRequestsResult> result); |
| 232 | 232 |
| 233 void CompletedRequestCallback(const MultipleItemStatuses& status); |
| 234 |
| 233 void HandleRemovedRequestsAndCallback( | 235 void HandleRemovedRequestsAndCallback( |
| 234 const RemoveRequestsCallback& callback, | 236 const RemoveRequestsCallback& callback, |
| 235 BackgroundSavePageResult status, | 237 BackgroundSavePageResult status, |
| 236 std::unique_ptr<UpdateRequestsResult> result); | 238 std::unique_ptr<UpdateRequestsResult> result); |
| 237 | 239 |
| 238 void HandleRemovedRequests(BackgroundSavePageResult status, | 240 void HandleRemovedRequests(BackgroundSavePageResult status, |
| 239 std::unique_ptr<UpdateRequestsResult> result); | 241 std::unique_ptr<UpdateRequestsResult> result); |
| 240 | 242 |
| 241 // Start processing now if connected (but with conservative assumption | 243 // Start processing now if connected (but with conservative assumption |
| 242 // as to other device conditions). | 244 // as to other device conditions). |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 base::TimeDelta offliner_timeout_; | 363 base::TimeDelta offliner_timeout_; |
| 362 // Allows us to pass a weak pointer to callbacks. | 364 // Allows us to pass a weak pointer to callbacks. |
| 363 base::WeakPtrFactory<RequestCoordinator> weak_ptr_factory_; | 365 base::WeakPtrFactory<RequestCoordinator> weak_ptr_factory_; |
| 364 | 366 |
| 365 DISALLOW_COPY_AND_ASSIGN(RequestCoordinator); | 367 DISALLOW_COPY_AND_ASSIGN(RequestCoordinator); |
| 366 }; | 368 }; |
| 367 | 369 |
| 368 } // namespace offline_pages | 370 } // namespace offline_pages |
| 369 | 371 |
| 370 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ | 372 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ |
| OLD | NEW |