| 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_CORE_STUB_OFFLINE_PAGE_MODEL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_STUB_OFFLINE_PAGE_MODEL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_STUB_OFFLINE_PAGE_MODEL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_STUB_OFFLINE_PAGE_MODEL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 void AddObserver(Observer* observer) override; | 26 void AddObserver(Observer* observer) override; |
| 27 void RemoveObserver(Observer* observer) override; | 27 void RemoveObserver(Observer* observer) override; |
| 28 void SavePage(const SavePageParams& save_page_params, | 28 void SavePage(const SavePageParams& save_page_params, |
| 29 std::unique_ptr<OfflinePageArchiver> archiver, | 29 std::unique_ptr<OfflinePageArchiver> archiver, |
| 30 const SavePageCallback& callback) override; | 30 const SavePageCallback& callback) override; |
| 31 void MarkPageAccessed(int64_t offline_id) override; | 31 void MarkPageAccessed(int64_t offline_id) override; |
| 32 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, | 32 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, |
| 33 const DeletePageCallback& callback) override; | 33 const DeletePageCallback& callback) override; |
| 34 void DeletePagesByClientIds(const std::vector<ClientId>& client_ids, | 34 void DeletePagesByClientIds(const std::vector<ClientId>& client_ids, |
| 35 const DeletePageCallback& callback) override; | 35 const DeletePageCallback& callback) override; |
| 36 void DeletePagesMatchingQuery(std::unique_ptr<OfflinePageModelQuery> query, |
| 37 const DeletePageCallback& callback) override; |
| 36 void GetPagesMatchingQuery( | 38 void GetPagesMatchingQuery( |
| 37 std::unique_ptr<OfflinePageModelQuery> query, | 39 std::unique_ptr<OfflinePageModelQuery> query, |
| 38 const MultipleOfflinePageItemCallback& callback) override; | 40 const MultipleOfflinePageItemCallback& callback) override; |
| 39 void GetPagesByClientIds( | 41 void GetPagesByClientIds( |
| 40 const std::vector<ClientId>& client_ids, | 42 const std::vector<ClientId>& client_ids, |
| 41 const MultipleOfflinePageItemCallback& callback) override; | 43 const MultipleOfflinePageItemCallback& callback) override; |
| 42 void DeleteCachedPagesByURLPredicate( | 44 void DeleteCachedPagesByURLPredicate( |
| 43 const UrlPredicate& predicate, | 45 const UrlPredicate& predicate, |
| 44 const DeletePageCallback& callback) override; | 46 const DeletePageCallback& callback) override; |
| 45 void CheckPagesExistOffline( | 47 void CheckPagesExistOffline( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 61 OfflineEventLogger* GetLogger() override; | 63 OfflineEventLogger* GetLogger() override; |
| 62 | 64 |
| 63 private: | 65 private: |
| 64 ClientPolicyController policy_controller_; | 66 ClientPolicyController policy_controller_; |
| 65 std::vector<int64_t> offline_ids_; | 67 std::vector<int64_t> offline_ids_; |
| 66 }; | 68 }; |
| 67 | 69 |
| 68 } // namespace offline_pages | 70 } // namespace offline_pages |
| 69 | 71 |
| 70 #endif // COMPONENTS_OFFLINE_PAGES_CORE_STUB_OFFLINE_PAGE_MODEL_H_ | 72 #endif // COMPONENTS_OFFLINE_PAGES_CORE_STUB_OFFLINE_PAGE_MODEL_H_ |
| OLD | NEW |