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

Unified Diff: components/ntp_snippets/content_suggestions_service.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_service.h
diff --git a/components/ntp_snippets/content_suggestions_service.h b/components/ntp_snippets/content_suggestions_service.h
index ad7f8a9f7c6a126e9636b004316c297b4066995f..6f5ab397320907c02caa58a7487a1d2f6813c664 100644
--- a/components/ntp_snippets/content_suggestions_service.h
+++ b/components/ntp_snippets/content_suggestions_service.h
@@ -88,6 +88,11 @@ class ContentSuggestionsService : public KeyedService,
const std::vector<ContentSuggestion>& GetSuggestionsForCategory(
Category category) const;
+ // 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).
Marc Treib 2016/08/10 09:40:31 nit: remove "a"
Philipp Keck 2016/08/10 13:14:47 Done.
+ void FetchMoreSuggestions(Category category);
+
// Fetches the image for the suggestion with the given |suggestion_id| and
// runs the |callback|. If that suggestion doesn't exist or the fetch fails,
// the callback gets an empty image. The callback will not be called

Powered by Google App Engine
This is Rietveld 408576698