Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h |
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h |
index ebf8bfa5e457993cbf802a4c54922545fe8bb405..5d2deef1102b650e4a16c15fb5dd65bf5dcaaeba 100644 |
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h |
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h |
@@ -5,6 +5,8 @@ |
#ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SINK_H_ |
#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SINK_H_ |
+@class ContentSuggestionIdentifier; |
+ |
// Data sink for the ContentSuggestions. It will be notified when new data needs |
// to be pulled. |
@protocol ContentSuggestionsDataSink |
@@ -12,6 +14,11 @@ |
// Notifies the Data Sink that new data is available. |
- (void)dataAvailable; |
+// The suggestion associated with |suggestionIdentifier| has been invalidated by |
+// the backend data source and should be cleared now. This is why this method is |
+// about the data source pushing something to the data sink. |
+- (void)clearSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier; |
+ |
@end |
#endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SINK_H_ |