| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
|
| index 2140655f69f68982373c7cc9f520ea4609a4eb43..f6c894dc6fa2dbfb599b1a7a51af3e663f97a9f5 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
|
| @@ -21,10 +21,16 @@ public interface SuggestionsSource {
|
| */
|
| interface Observer {
|
| /** Called when a category has a new list of content suggestions. */
|
| - void onNewSuggestions(int category);
|
| + void onNewSuggestions(@CategoryInt int category);
|
|
|
| /** Called when a category changed its status. */
|
| - void onCategoryStatusChanged(int category, @CategoryStatusEnum int newStatus);
|
| + void onCategoryStatusChanged(@CategoryInt int category, @CategoryStatusEnum int newStatus);
|
| +
|
| + /**
|
| + * Called when a suggestion is invalidated, which means it needs to be removed from the UI
|
| + * immediately.
|
| + */
|
| + void onSuggestionInvalidated(@CategoryInt int category, String suggestionId);
|
| }
|
|
|
| /**
|
|
|