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

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

Issue 2751713002: Fetch Suggestions by category (Closed)
Patch Set: Add comment 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
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..17f997d7378a1090788219e16a7856ba62d3ffe9 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
@@ -8,6 +8,7 @@
@class ContentSuggestion;
@protocol ContentSuggestionsDataSink;
@protocol ContentSuggestionsImageFetcher;
+@class ContentSuggestionsSectionInformation;
stkhapugin 2017/03/14 15:25:12 move to line 9 to group @class
gambard 2017/03/14 16:05:30 Done.
// DataSource for the content suggestions. Provides the suggestions data in a
// format compatible with Objective-C.
@@ -20,6 +21,11 @@
// is available.
- (NSArray<ContentSuggestion*>*)allSuggestions;
+// Returns the data currently available for the section identified by
+// |sectionInfo|. Returns an empty array if nothing is available.
+- (NSArray<ContentSuggestion*>*)suggestionsForSection:
stkhapugin 2017/03/14 15:25:12 Consider nullability identifiers in this section :
gambard 2017/03/14 16:05:30 Done :)
+ (ContentSuggestionsSectionInformation*)sectionInfo;
+
// Returns an image updater for the suggestions provided by this data source.
- (id<ContentSuggestionsImageFetcher>)imageFetcher;

Powered by Google App Engine
This is Rietveld 408576698