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

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

Issue 2706083002: Add publisher information on ContentSuggestionsArticles (Closed)
Patch Set: Fix compilation Created 3 years, 10 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_suggestion.h
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestion.h b/ios/chrome/browser/ui/content_suggestions/content_suggestion.h
index 518958ebb084dc25e7ce657e14de5cb39a1d9c59..7a13b0a5e0d9e32b0df76d4b186195633d6ef56f 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestion.h
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestion.h
@@ -9,6 +9,10 @@
#include "url/gurl.h"
+namespace base {
+class Time;
+}
+
@class ContentSuggestionsSectionInformation;
// Enum defining the type of a ContentSuggestions.
@@ -28,6 +32,10 @@ typedef NS_ENUM(NSInteger, ContentSuggestionType) {
@property(nonatomic, strong, nullable) UIImage* image;
// URL associated with the suggestion.
@property(nonatomic, assign) GURL url;
+// The name of the publisher.
+@property(nonatomic, copy, nullable) NSString* publisher;
+// The date of publication.
+@property(nonatomic, assign) base::Time publishDate;
// Section information in which this suggestion should be.
@property(nonatomic, strong, nullable)

Powered by Google App Engine
This is Rietveld 408576698