| 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_QUEUE_STORE_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // Asynchronously changes the state of requests from the store using their | 68 // Asynchronously changes the state of requests from the store using their |
| 69 // request id. | 69 // request id. |
| 70 virtual void ChangeRequestsState( | 70 virtual void ChangeRequestsState( |
| 71 const std::vector<int64_t>& request_ids, | 71 const std::vector<int64_t>& request_ids, |
| 72 const SavePageRequest::RequestState new_state, | 72 const SavePageRequest::RequestState new_state, |
| 73 const UpdateMultipleRequestsCallback& callback) = 0; | 73 const UpdateMultipleRequestsCallback& callback) = 0; |
| 74 | 74 |
| 75 // Resets the store. | 75 // Resets the store. |
| 76 virtual void Reset(const ResetCallback& callback) = 0; | 76 virtual void Reset(const ResetCallback& callback) = 0; |
| 77 |
| 78 // Gets the store state. |
| 79 virtual StoreState state() const = 0; |
| 77 }; | 80 }; |
| 78 | 81 |
| 79 } // namespace offline_pages | 82 } // namespace offline_pages |
| 80 | 83 |
| 81 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_ | 84 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_ |
| OLD | NEW |