| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 size_t unread_size() const override; | 48 size_t unread_size() const override; |
| 49 size_t unseen_size() const override; | 49 size_t unseen_size() const override; |
| 50 | 50 |
| 51 void MarkAllSeen() override; | 51 void MarkAllSeen() override; |
| 52 bool HasUnseenEntries() const override; | 52 bool HasUnseenEntries() const override; |
| 53 void ResetUnseenEntries() override; | 53 void ResetUnseenEntries() override; |
| 54 | 54 |
| 55 const std::vector<GURL> Keys() const override; | 55 const std::vector<GURL> Keys() const override; |
| 56 | 56 |
| 57 const ReadingListEntry* GetEntryByURL(const GURL& gurl) const override; | 57 const ReadingListEntry* GetEntryByURL(const GURL& gurl) const override; |
| 58 const ReadingListEntry* GetFirstUnreadEntry(bool distilled) const override; |
| 58 | 59 |
| 59 void RemoveEntryByURL(const GURL& url) override; | 60 void RemoveEntryByURL(const GURL& url) override; |
| 60 | 61 |
| 61 const ReadingListEntry& AddEntry(const GURL& url, | 62 const ReadingListEntry& AddEntry(const GURL& url, |
| 62 const std::string& title) override; | 63 const std::string& title) override; |
| 63 | 64 |
| 64 void SetReadStatus(const GURL& url, bool read) override; | 65 void SetReadStatus(const GURL& url, bool read) override; |
| 65 | 66 |
| 66 void SetEntryTitle(const GURL& url, const std::string& title) override; | 67 void SetEntryTitle(const GURL& url, const std::string& title) override; |
| 67 void SetEntryDistilledPath(const GURL& url, | 68 void SetEntryDistilledPath(const GURL& url, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 126 |
| 126 std::unique_ptr<ReadingListModelStorage> storage_layer_; | 127 std::unique_ptr<ReadingListModelStorage> storage_layer_; |
| 127 PrefService* pref_service_; | 128 PrefService* pref_service_; |
| 128 bool has_unseen_; | 129 bool has_unseen_; |
| 129 bool loaded_; | 130 bool loaded_; |
| 130 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; | 131 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; |
| 131 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); | 132 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ | 135 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ |
| OLD | NEW |