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

Unified Diff: ios/chrome/browser/ui/reading_list/reading_list_data_source.h

Issue 2885383002: ReadingListDataSource returns items instead of Entries (Closed)
Patch Set: Styling Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/reading_list/reading_list_data_source.h
diff --git a/ios/chrome/browser/ui/reading_list/reading_list_data_source.h b/ios/chrome/browser/ui/reading_list/reading_list_data_source.h
index 0d052e7dadf56b220cb9f820b0232d980a38ffbc..0feb01d7d5aecd92288731991ac64521cfb1a3b2 100644
--- a/ios/chrome/browser/ui/reading_list/reading_list_data_source.h
+++ b/ios/chrome/browser/ui/reading_list/reading_list_data_source.h
@@ -12,6 +12,7 @@
class GURL;
class ReadingListEntry;
+@class ReadingListCollectionViewItem;
@protocol ReadingListDataSink;
// Data Source for the Reading List UI, providing the data sink with the data to
@@ -36,8 +37,14 @@ class ReadingListEntry;
// Removes the entry associated with |URL|.
- (void)removeEntryWithURL:(const GURL&)URL;
+// Fills the |readArray| and |unreadArray| with the corresponding items from the
+// model. The items are sorted most recent first.
+- (void)fillReadItems:
+ (nullable NSMutableArray<ReadingListCollectionViewItem*>*)readArray
+ unreadItems:(nullable NSMutableArray<ReadingListCollectionViewItem*>*)
+ unreadArray;
+
// TODO(crbug.com/721758): Return ReadingListItem directly.
-- (const std::vector<GURL>)keys;
- (const ReadingListEntry* _Nullable)entryWithURL:(const GURL&)URL;
// TODO(crbug.com/721758): Batch updates should be done in the mediator.

Powered by Google App Engine
This is Rietveld 408576698