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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h

Issue 2638413006: Add ContentSuggestionsMediator (Closed)
Patch Set: Format 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h
index b453f170f3aef3d11c1ac72ee57dae3d5233188f..29615fda56c5ab1a48b1462204edd6f5ada6be31 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h
@@ -9,6 +9,7 @@
#import "ios/chrome/browser/ui/collection_view/collection_view_model.h"
+@protocol ContentSuggestionsDataSource;
@class ContentSuggestionsViewController;
// Enum defining the ItemType of this ContentSuggestionsCollectionUpdater.
@@ -24,6 +25,12 @@ typedef NS_ENUM(NSInteger, ItemType) {
// handling the items addition.
@interface ContentSuggestionsCollectionUpdater : NSObject
+// Initialize with the |dataSource| used to get the data.
+- (instancetype)initWithDataSource:(id<ContentSuggestionsDataSource>)dataSource
+ NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)init NS_UNAVAILABLE;
+
// |collectionViewController| this Updater will update. Needs to be set before
// adding items.
@property(nonatomic, assign)

Powered by Google App Engine
This is Rietveld 408576698