| 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_OFFLINE_PAGE_MODEL_IMPL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 std::unique_ptr<OfflinePageMetadataStore> store, | 59 std::unique_ptr<OfflinePageMetadataStore> store, |
| 60 const base::FilePath& archives_dir, | 60 const base::FilePath& archives_dir, |
| 61 const scoped_refptr<base::SequencedTaskRunner>& task_runner); | 61 const scoped_refptr<base::SequencedTaskRunner>& task_runner); |
| 62 ~OfflinePageModelImpl() override; | 62 ~OfflinePageModelImpl() override; |
| 63 | 63 |
| 64 // Implemented methods: | 64 // Implemented methods: |
| 65 void AddObserver(Observer* observer) override; | 65 void AddObserver(Observer* observer) override; |
| 66 void RemoveObserver(Observer* observer) override; | 66 void RemoveObserver(Observer* observer) override; |
| 67 void SavePage(const SavePageParams& save_page_params, | 67 void SavePage(const SavePageParams& save_page_params, |
| 68 std::unique_ptr<OfflinePageArchiver> archiver, | 68 std::unique_ptr<OfflinePageArchiver> archiver, |
| 69 const std::string& signal_data, |
| 69 const SavePageCallback& callback) override; | 70 const SavePageCallback& callback) override; |
| 70 void MarkPageAccessed(int64_t offline_id) override; | 71 void MarkPageAccessed(int64_t offline_id) override; |
| 71 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, | 72 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, |
| 72 const DeletePageCallback& callback) override; | 73 const DeletePageCallback& callback) override; |
| 73 void DeletePagesByClientIds(const std::vector<ClientId>& client_ids, | 74 void DeletePagesByClientIds(const std::vector<ClientId>& client_ids, |
| 74 const DeletePageCallback& callback) override; | 75 const DeletePageCallback& callback) override; |
| 75 | 76 |
| 76 void GetPagesMatchingQuery( | 77 void GetPagesMatchingQuery( |
| 77 std::unique_ptr<OfflinePageModelQuery> query, | 78 std::unique_ptr<OfflinePageModelQuery> query, |
| 78 const MultipleOfflinePageItemCallback& callback) override; | 79 const MultipleOfflinePageItemCallback& callback) override; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 base::Clock* testing_clock_; | 288 base::Clock* testing_clock_; |
| 288 | 289 |
| 289 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; | 290 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; |
| 290 | 291 |
| 291 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); | 292 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace offline_pages | 295 } // namespace offline_pages |
| 295 | 296 |
| 296 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ | 297 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ |
| OLD | NEW |