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

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

Issue 2736653002: Suggested Articles can be dismissed (Closed)
Patch Set: Address comments 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/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 f53553a0aa4acab352422e97cf67a1a722e4da71..03c94089c0c162ef04609d9392aae801d3ce571c 100644
--- a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.h
+++ b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.h
@@ -14,6 +14,8 @@ namespace ntp_snippets {
class ContentSuggestionsService;
}
+@class ContentSuggestionIdentifier;
+
// Mediator for ContentSuggestions. Makes the interface between a
// ntp_snippets::ContentSuggestionsService and the Objective-C services using
// its data.
@@ -25,6 +27,10 @@ class ContentSuggestionsService;
NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
+// Dismiss the suggestion from the content suggestions service. It does change
lpromero 2017/03/06 13:02:31 Dismisses
lpromero 2017/03/06 13:02:31 Did you mean: it doesn't change the UI? What I me
gambard 2017/03/06 17:25:33 Yes for now, but it won't necessarily be called fr
gambard 2017/03/06 17:25:33 Done.
+// the UI.
+- (void)dismissSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier;
+
@end
#endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H_

Powered by Google App Engine
This is Rietveld 408576698