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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Get all of the offline pages from the store. | 45 // Get all of the offline pages from the store. |
46 virtual void Load(const LoadCallback& callback) = 0; | 46 virtual void Load(const LoadCallback& callback) = 0; |
47 | 47 |
48 // Asynchronously adds or updates offline page metadata to the store. | 48 // Asynchronously adds or updates offline page metadata to the store. |
49 // Result of the update is passed in callback. | 49 // Result of the update is passed in callback. |
50 virtual void AddOrUpdateOfflinePage(const OfflinePageItem& offline_page, | 50 virtual void AddOrUpdateOfflinePage(const OfflinePageItem& offline_page, |
51 const UpdateCallback& callback) = 0; | 51 const UpdateCallback& callback) = 0; |
52 | 52 |
53 // Asynchronously removes offline page metadata from the store. | 53 // Asynchronously removes offline page metadata from the store. |
54 // Result of the update is passed in callback. | 54 // Result of the update is passed in callback. |
55 virtual void RemoveOfflinePages(const std::vector<int64>& bookmark_ids, | 55 virtual void RemoveOfflinePages(const std::vector<int64_t>& bookmark_ids, |
56 const UpdateCallback& callback) = 0; | 56 const UpdateCallback& callback) = 0; |
57 | 57 |
58 // Resets the store. | 58 // Resets the store. |
59 virtual void Reset(const ResetCallback& callback) = 0; | 59 virtual void Reset(const ResetCallback& callback) = 0; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace offline_pages | 62 } // namespace offline_pages |
63 | 63 |
64 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ | 64 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ |
OLD | NEW |