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

Unified Diff: components/reading_list/ios/reading_list_model.h

Issue 2607523002: Reading List: Open distilled article first if no network. (Closed)
Patch Set: add guards Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/reading_list/ios/reading_list_model_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/reading_list/ios/reading_list_model.h
diff --git a/components/reading_list/ios/reading_list_model.h b/components/reading_list/ios/reading_list_model.h
index 359bc2a4d6564ed4c42757b8c6a26396338fe812..f6850e0ca8ee735275999c675331e9d7aab14855 100644
--- a/components/reading_list/ios/reading_list_model.h
+++ b/components/reading_list/ios/reading_list_model.h
@@ -78,6 +78,10 @@ class ReadingListModel : public base::NonThreadSafe {
// Returns a specific entry. Returns null if the entry does not exist.
virtual const ReadingListEntry* GetEntryByURL(const GURL& gurl) const = 0;
+ // Returns the first unread entry. If |distilled| is true, prioritize the
+ // entries available offline.
+ virtual const ReadingListEntry* GetFirstUnreadEntry(bool distilled) const = 0;
+
// Adds |url| at the top of the unread entries, and removes entries with the
// same |url| from everywhere else if they exist. The entry title will be a
// trimmed copy of |title.
« no previous file with comments | « no previous file | components/reading_list/ios/reading_list_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698