| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_OFFLINE_PAGE_METADATA_STORE_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Get all of the offline pages from the store. | 47 // Get all of the offline pages from the store. |
| 48 virtual void Load(const LoadCallback& callback) = 0; | 48 virtual void Load(const LoadCallback& callback) = 0; |
| 49 | 49 |
| 50 // Asynchronously adds or updates offline page metadata to the store. | 50 // Asynchronously adds or updates offline page metadata to the store. |
| 51 // Result of the update is passed in callback. | 51 // Result of the update is passed in callback. |
| 52 virtual void AddOrUpdateOfflinePage(const OfflinePageItem& offline_page, | 52 virtual void AddOrUpdateOfflinePage(const OfflinePageItem& offline_page, |
| 53 const UpdateCallback& callback) = 0; | 53 const UpdateCallback& callback) = 0; |
| 54 | 54 |
| 55 // Asynchronously removes offline page metadata from the store. | 55 // Asynchronously removes offline page metadata from the store. |
| 56 // Result of the update is passed in callback. | 56 // Result of the update is passed in callback. |
| 57 virtual void RemoveOfflinePages(const std::vector<int64_t>& bookmark_ids, | 57 virtual void RemoveOfflinePages(const std::vector<int64_t>& offline_ids, |
| 58 const UpdateCallback& callback) = 0; | 58 const UpdateCallback& callback) = 0; |
| 59 | 59 |
| 60 // Resets the store. | 60 // Resets the store. |
| 61 virtual void Reset(const ResetCallback& callback) = 0; | 61 virtual void Reset(const ResetCallback& callback) = 0; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace offline_pages | 64 } // namespace offline_pages |
| 65 | 65 |
| 66 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ | 66 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ |
| OLD | NEW |