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

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

Issue 2782613004: Add FaviconAttributesProvider to ContentSuggestions (Closed)
Patch Set: Cleanup 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 3758b553f90aa4660b2bcb9c92c968a9049c392b..a7fe791cd478e0f37c22776ffe682157ef63df13 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;
@class ContentSuggestionIdentifier;
@class ContentSuggestionsSectionInformation;
+@class FaviconAttributesProvider;
@protocol ContentSuggestionsDataSink;
@protocol ContentSuggestionsImageFetcher;
@@ -21,6 +22,10 @@ typedef void (^MoreSuggestionsFetched)(NSArray<ContentSuggestion*>* _Nonnull);
// The data sink that will be notified when the data change.
@property(nonatomic, nullable, weak) id<ContentSuggestionsDataSink> dataSink;
+// Returns a FaviconAttributesProvider to fetch the favicon for the suggestions.
+@property(nonatomic, nullable, strong, readonly)
+ FaviconAttributesProvider* attributesProvider;
lpromero 2017/03/29 13:32:07 I think this should not be know by the UI layer. Y
gambard 2017/03/30 08:07:11 Done.
+
// Returns all the data currently available.
- (nonnull NSArray<ContentSuggestion*>*)allSuggestions;

Powered by Google App Engine
This is Rietveld 408576698