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_CORE_OFFLINE_PAGE_MODEL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 virtual void MarkPageAccessed(int64_t offline_id) = 0; | 124 virtual void MarkPageAccessed(int64_t offline_id) = 0; |
125 | 125 |
126 // Deletes pages based on |offline_ids|. | 126 // Deletes pages based on |offline_ids|. |
127 virtual void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, | 127 virtual void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, |
128 const DeletePageCallback& callback) = 0; | 128 const DeletePageCallback& callback) = 0; |
129 | 129 |
130 // Deletes all pages associated with any of |client_ids|. | 130 // Deletes all pages associated with any of |client_ids|. |
131 virtual void DeletePagesByClientIds(const std::vector<ClientId>& client_ids, | 131 virtual void DeletePagesByClientIds(const std::vector<ClientId>& client_ids, |
132 const DeletePageCallback& callback) = 0; | 132 const DeletePageCallback& callback) = 0; |
133 | 133 |
134 // Retrieves all pages matching |query|. | |
dewittj
2017/05/03 23:25:17
nit: don't bother changing this file :)
| |
134 virtual void GetPagesMatchingQuery( | 135 virtual void GetPagesMatchingQuery( |
135 std::unique_ptr<OfflinePageModelQuery> query, | 136 std::unique_ptr<OfflinePageModelQuery> query, |
136 const MultipleOfflinePageItemCallback& callback) = 0; | 137 const MultipleOfflinePageItemCallback& callback) = 0; |
137 | 138 |
138 // Retrieves all pages associated with any of |client_ids|. | 139 // Retrieves all pages associated with any of |client_ids|. |
139 virtual void GetPagesByClientIds( | 140 virtual void GetPagesByClientIds( |
140 const std::vector<ClientId>& client_ids, | 141 const std::vector<ClientId>& client_ids, |
141 const MultipleOfflinePageItemCallback& callback) = 0; | 142 const MultipleOfflinePageItemCallback& callback) = 0; |
142 | 143 |
143 // Deletes cached offline pages matching the URL predicate. | 144 // Deletes cached offline pages matching the URL predicate. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 // TODO(dougarnett): Remove this and its uses. | 178 // TODO(dougarnett): Remove this and its uses. |
178 virtual bool is_loaded() const = 0; | 179 virtual bool is_loaded() const = 0; |
179 | 180 |
180 // Returns the logger. Ownership is retained by the model. | 181 // Returns the logger. Ownership is retained by the model. |
181 virtual OfflineEventLogger* GetLogger() = 0; | 182 virtual OfflineEventLogger* GetLogger() = 0; |
182 }; | 183 }; |
183 | 184 |
184 } // namespace offline_pages | 185 } // namespace offline_pages |
185 | 186 |
186 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_H_ | 187 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_H_ |
OLD | NEW |