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..b16475b091fbd13d6eafd93f05ef5e6be8e23dc6 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 |
@@ -30,8 +31,12 @@ class ContentSuggestionsService; |
initWithContentService:(ntp_snippets::ContentSuggestionsService*)contentService |
largeIconService:(favicon::LargeIconService*)largeIconService |
NS_DESIGNATED_INITIALIZER; |
+ |
- (instancetype)init NS_UNAVAILABLE; |
+// Command handler for the mediator. |
+@property(nonatomic, weak) id<ContentSuggestionsCommands> commandHandler; |
stkhapugin
2017/04/05 13:06:02
nit: can you start adding nullability markers in t
gambard
2017/04/05 15:30:17
Done.
|
+ |
// Dismisses the suggestion from the content suggestions service. It doesn't |
// change the UI. |
- (void)dismissSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier; |