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

Unified Diff: components/ntp_snippets/content_suggestions_provider.h

Issue 2232783002: Support action button to fetch more content suggestions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snippetsbridge
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: 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 2f343a47dc4bf918334e9eea8d58026f078bf55b..99f2e5de6a8646819852006ce1fdecb9191bc9a4 100644
--- a/components/ntp_snippets/content_suggestions_provider.h
+++ b/components/ntp_snippets/content_suggestions_provider.h
@@ -81,6 +81,12 @@ class ContentSuggestionsProvider {
// Returns the meta information for the given |category|.
virtual CategoryInfo GetCategoryInfo(Category category) = 0;
+ // Triggers a fetch for new suggestions (over the network, for example) for
+ // the given |category|. This must be initiated by the user (e.g. by clicking
+ // the a "More" button). New suggestions will become available through
Marc Treib 2016/08/10 09:40:31 nit: remove "a"
Philipp Keck 2016/08/10 13:14:46 Done.
+ // |Observer::OnNewSuggestions|.
+ virtual void FetchMoreSuggestions(Category category) = 0;
Marc Treib 2016/08/10 09:40:31 Hm. For now, we don't expect this method to ever a
Philipp Keck 2016/08/10 13:14:46 Acknowledged. We could, instead, put sth. like a
+
// Dismisses the suggestion with the given ID. A provider needs to ensure that
// a once-dismissed suggestion is never delivered again (through the
// Observer). The provider must not call Observer::OnSuggestionsChanged if the

Powered by Google App Engine
This is Rietveld 408576698