| Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h
|
| diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h
|
| index ed415d1fd2cbd961f78ea4aaebc98c01eedd0ae1..029790e654b2dad1e99e7338c18cd6fa47fa6710 100644
|
| --- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h
|
| +++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h
|
| @@ -14,6 +14,16 @@ namespace base {
|
| class Time;
|
| }
|
|
|
| +@class ContentSuggestionsArticleItem;
|
| +
|
| +// Delegate for a ContentSuggestionsArticleItem.
|
| +@protocol ContentSuggestionsArticleItemDelegate
|
| +
|
| +// Loads the image associated with this item.
|
| +- (void)loadImageForArticleItem:(ContentSuggestionsArticleItem*)articleItem;
|
| +
|
| +@end
|
| +
|
| // Item for an article in the suggestions.
|
| @interface ContentSuggestionsArticleItem
|
| : CollectionViewItem<ContentSuggestionIdentification>
|
| @@ -23,7 +33,7 @@ class Time;
|
| - (instancetype)initWithType:(NSInteger)type
|
| title:(NSString*)title
|
| subtitle:(NSString*)subtitle
|
| - image:(UIImage*)image
|
| + delegate:(id<ContentSuggestionsArticleItemDelegate>)delegate
|
| url:(const GURL&)url NS_DESIGNATED_INITIALIZER;
|
|
|
| - (instancetype)initWithType:(NSInteger)type NS_UNAVAILABLE;
|
| @@ -34,6 +44,9 @@ class Time;
|
| @property(nonatomic, copy) NSString* publisher;
|
| @property(nonatomic, assign) base::Time publishDate;
|
|
|
| +// Whether the image is being fetched. This property is set by the delegate.
|
| +@property(nonatomic, assign) BOOL imageBeingFetched;
|
| +
|
| @end
|
|
|
| // Corresponding cell for an article in the suggestions.
|
|
|