| 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_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ | 5 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ | 6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 reading_list::EntrySource source) override; | 64 reading_list::EntrySource source) override; |
| 65 | 65 |
| 66 void SetReadStatus(const GURL& url, bool read) override; | 66 void SetReadStatus(const GURL& url, bool read) override; |
| 67 | 67 |
| 68 void SetEntryTitle(const GURL& url, const std::string& title) override; | 68 void SetEntryTitle(const GURL& url, const std::string& title) override; |
| 69 void SetEntryDistilledState( | 69 void SetEntryDistilledState( |
| 70 const GURL& url, | 70 const GURL& url, |
| 71 ReadingListEntry::DistillationState state) override; | 71 ReadingListEntry::DistillationState state) override; |
| 72 void SetEntryDistilledInfo(const GURL& url, | 72 void SetEntryDistilledInfo(const GURL& url, |
| 73 const base::FilePath& distilled_path, | 73 const base::FilePath& distilled_path, |
| 74 const GURL& distilled_url) override; | 74 const GURL& distilled_url, |
| 75 int64_t size) override; |
| 75 | 76 |
| 76 void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry) override; | 77 void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry) override; |
| 77 ReadingListEntry* SyncMergeEntry( | 78 ReadingListEntry* SyncMergeEntry( |
| 78 std::unique_ptr<ReadingListEntry> entry) override; | 79 std::unique_ptr<ReadingListEntry> entry) override; |
| 79 void SyncRemoveEntry(const GURL& url) override; | 80 void SyncRemoveEntry(const GURL& url) override; |
| 80 | 81 |
| 81 std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate> | 82 std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate> |
| 82 CreateBatchToken() override; | 83 CreateBatchToken() override; |
| 83 | 84 |
| 84 // Helper class that is used to scope batch updates. | 85 // Helper class that is used to scope batch updates. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 std::unique_ptr<ReadingListModelStorage> storage_layer_; | 133 std::unique_ptr<ReadingListModelStorage> storage_layer_; |
| 133 PrefService* pref_service_; | 134 PrefService* pref_service_; |
| 134 bool has_unseen_; | 135 bool has_unseen_; |
| 135 bool loaded_; | 136 bool loaded_; |
| 136 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; | 137 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; |
| 137 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); | 138 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ | 141 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ |
| OLD | NEW |