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

Unified Diff: ios/chrome/browser/content_suggestions/content_suggestions_mediator.h

Issue 2798883002: Open Reading List on tap on More (Closed)
Patch Set: Address comments Created 3 years, 8 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/content_suggestions/content_suggestions_mediator.h
diff --git a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.h b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.h
index 9a7746f9494752bf4c86e58888beaf24937726e9..ed1eabd2e83d9da673ad0a2b27c3ed678929f12e 100644
--- a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.h
+++ b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.h
@@ -18,6 +18,7 @@ namespace ntp_snippets {
class ContentSuggestionsService;
}
+@protocol ContentSuggestionsCommands;
@class ContentSuggestionIdentifier;
// Mediator for ContentSuggestions. Makes the interface between a
@@ -26,15 +27,22 @@ class ContentSuggestionsService;
@interface ContentSuggestionsMediator : NSObject<ContentSuggestionsDataSource>
// Initialize the mediator with the |contentService| to mediate.
-- (instancetype)
-initWithContentService:(ntp_snippets::ContentSuggestionsService*)contentService
- largeIconService:(favicon::LargeIconService*)largeIconService
+- (nullable instancetype)
+initWithContentService:
+ (nonnull ntp_snippets::ContentSuggestionsService*)contentService
+ largeIconService:(nonnull favicon::LargeIconService*)largeIconService
NS_DESIGNATED_INITIALIZER;
-- (instancetype)init NS_UNAVAILABLE;
+
+- (nullable instancetype)init NS_UNAVAILABLE;
+
+// Command handler for the mediator.
+@property(nonatomic, weak, nullable) id<ContentSuggestionsCommands>
+ commandHandler;
// Dismisses the suggestion from the content suggestions service. It doesn't
// change the UI.
-- (void)dismissSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier;
+- (void)dismissSuggestion:
+ (nonnull ContentSuggestionIdentifier*)suggestionIdentifier;
@end

Powered by Google App Engine
This is Rietveld 408576698