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

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

Issue 2751713002: Fetch Suggestions by category (Closed)
Patch Set: git cl web Created 3 years, 9 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
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_data_source.h
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_data_source.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_data_source.h
index b02a64ac8181a240a70cbb9b9324c3840aa695d6..fc7a26eb83bfbbefcf94204409077393b2d2261f 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_data_source.h
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_data_source.h
@@ -6,6 +6,7 @@
#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SOURCE_H_
@class ContentSuggestion;
+@class ContentSuggestionsSectionInformation;
@protocol ContentSuggestionsDataSink;
@protocol ContentSuggestionsImageFetcher;
@@ -14,14 +15,18 @@
@protocol ContentSuggestionsDataSource
// The data sink that will be notified when the data change.
-@property(nonatomic, weak) id<ContentSuggestionsDataSink> dataSink;
+@property(nonatomic, nullable, weak) id<ContentSuggestionsDataSink> dataSink;
-// Returns all the data currently available. Returns an empty array if nothing
-// is available.
-- (NSArray<ContentSuggestion*>*)allSuggestions;
+// Returns all the data currently available.
+- (nonnull NSArray<ContentSuggestion*>*)allSuggestions;
+
+// Returns the data currently available for the section identified by
+// |sectionInfo|.
+- (nonnull NSArray<ContentSuggestion*>*)suggestionsForSection:
+ (nonnull ContentSuggestionsSectionInformation*)sectionInfo;
// Returns an image updater for the suggestions provided by this data source.
-- (id<ContentSuggestionsImageFetcher>)imageFetcher;
+- (nullable id<ContentSuggestionsImageFetcher>)imageFetcher;
@end
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698