| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 void RemoveEntryByURL(const GURL& url) override; | 60 void RemoveEntryByURL(const GURL& url) override; |
| 61 | 61 |
| 62 const ReadingListEntry& AddEntry(const GURL& url, | 62 const ReadingListEntry& AddEntry(const GURL& url, |
| 63 const std::string& title, | 63 const std::string& title, |
| 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 SetEntryDistilledPath(const GURL& url, | |
| 70 const base::FilePath& distilled_path) override; | |
| 71 void SetEntryDistilledState( | 69 void SetEntryDistilledState( |
| 72 const GURL& url, | 70 const GURL& url, |
| 73 ReadingListEntry::DistillationState state) override; | 71 ReadingListEntry::DistillationState state) override; |
| 72 void SetEntryDistilledInfo(const GURL& url, |
| 73 const base::FilePath& distilled_path, |
| 74 const GURL& distilled_url) override; |
| 74 | 75 |
| 75 void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry) override; | 76 void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry) override; |
| 76 ReadingListEntry* SyncMergeEntry( | 77 ReadingListEntry* SyncMergeEntry( |
| 77 std::unique_ptr<ReadingListEntry> entry) override; | 78 std::unique_ptr<ReadingListEntry> entry) override; |
| 78 void SyncRemoveEntry(const GURL& url) override; | 79 void SyncRemoveEntry(const GURL& url) override; |
| 79 | 80 |
| 80 std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate> | 81 std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate> |
| 81 CreateBatchToken() override; | 82 CreateBatchToken() override; |
| 82 | 83 |
| 83 // Helper class that is used to scope batch updates. | 84 // Helper class that is used to scope batch updates. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 131 |
| 131 std::unique_ptr<ReadingListModelStorage> storage_layer_; | 132 std::unique_ptr<ReadingListModelStorage> storage_layer_; |
| 132 PrefService* pref_service_; | 133 PrefService* pref_service_; |
| 133 bool has_unseen_; | 134 bool has_unseen_; |
| 134 bool loaded_; | 135 bool loaded_; |
| 135 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; | 136 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; |
| 136 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); | 137 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ | 140 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ |
| OLD | NEW |