Chromium Code Reviews| 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 fc7a26eb83bfbbefcf94204409077393b2d2261f..fdc9ea1d107e15dbca95162d19e265b6bcd23cd7 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,10 +6,14 @@ |
| #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SOURCE_H_ |
| @class ContentSuggestion; |
| +@class ContentSuggestionIdentifier; |
| @class ContentSuggestionsSectionInformation; |
| @protocol ContentSuggestionsDataSink; |
| @protocol ContentSuggestionsImageFetcher; |
| +// Typedef for a block taking the fetched suggestions as parameter. |
| +typedef void (^MoreSuggestionsFetched)(NSArray<ContentSuggestion*>* _Nonnull); |
| + |
| // DataSource for the content suggestions. Provides the suggestions data in a |
| // format compatible with Objective-C. |
| @protocol ContentSuggestionsDataSource |
| @@ -28,6 +32,16 @@ |
| // Returns an image updater for the suggestions provided by this data source. |
| - (nullable id<ContentSuggestionsImageFetcher>)imageFetcher; |
| +// Fetches additional contents. All the |knownSuggestions| must come from the |
| +// same |sectionInfo|. If the fetch was completed, the given |callback| is |
| +// called with the updated content. |
|
lpromero
2017/03/15 10:18:09
"contents" to match line 35? Can you precise if th
gambard
2017/03/15 13:14:15
Updated.
|
| +- (void)fetchMoreSuggestionsKnowing: |
| + (nullable NSArray<ContentSuggestionIdentifier*>*)knownSuggestions |
| + fromSectionInfo: |
| + (nonnull ContentSuggestionsSectionInformation*) |
| + sectionInfo |
| + callback:(nullable MoreSuggestionsFetched)callback; |
| + |
| @end |
| #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SOURCE_H_ |