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

Unified Diff: components/ntp_snippets/content_suggestions_provider.h

Issue 2557363002: [NTP Snippets] Refactor background scheduling for remote suggestions (Closed)
Patch Set: Tim's comments and splitting RemoteSuggestionsProvider and RemoteSuggestionsProviderImpl Created 4 years 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: components/ntp_snippets/content_suggestions_provider.h
diff --git a/components/ntp_snippets/content_suggestions_provider.h b/components/ntp_snippets/content_suggestions_provider.h
index 8d941943475b434a3da0a0d90691e2cd097b4d4a..25d2de032c0e2e736e7cb31a9ee231ee2a6c1542 100644
--- a/components/ntp_snippets/content_suggestions_provider.h
+++ b/components/ntp_snippets/content_suggestions_provider.h
@@ -104,6 +104,12 @@ class ContentSuggestionsProvider {
const std::set<std::string>& known_suggestion_ids,
const FetchDoneCallback& callback) = 0;
+ // Reloads suggestions from all categories. If the suggestions change, the
+ // observer must be notified via OnNewSuggestions();
+ // TODO(jkcal): make pure virtual (involves touching all providers) or remove
+ // by resolving the pull/push dichotomy.
+ virtual void ReloadSuggestions() {}
+
// Removes history from the specified time range where the URL matches the
// |filter|. The data removed depends on the provider. Note that the
// data outside the time range may be deleted, for example suggestions, which

Powered by Google App Engine
This is Rietveld 408576698