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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java

Issue 2244793002: Remove deleted offline page suggestions from opened NTPs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: 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);
}
/**

Powered by Google App Engine
This is Rietveld 408576698