Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: components/reading_list/ios/reading_list_model_impl.h

Issue 2607523002: Reading List: Open distilled article first if no network. (Closed)
Patch Set: add guards Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/reading_list/ios/reading_list_model.h ('k') | components/reading_list/ios/reading_list_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698