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

Unified Diff: components/ntp_snippets/content_suggestions_service.h

Issue 2230473002: Refactor and extend SnippetsBridge for multi-section support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@categoryinfo
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 7f771b5f4130be52b298381096fe0155c603981e..a40b15c9d3c00bc07d2dcdc2c01999531763543c 100644
--- a/components/ntp_snippets/content_suggestions_service.h
+++ b/components/ntp_snippets/content_suggestions_service.h
@@ -36,11 +36,11 @@ class ContentSuggestionsService : public KeyedService,
class Observer {
public:
- // Fired every time the service receives a new set of data, replacing any
- // previously available data (though in most cases there will be an overlap
- // and only a few changes within the data). The new data is then available
- // through the getters of the service.
- virtual void OnNewSuggestions() = 0;
+ // Fired every time the service receives a new set of data for the given
+ // |category|, replacing any previously available data (though in most cases
+ // there will be an overlap and only a few changes within the data). The new
+ // data is then available through |GetSuggestionsForCategory(category)|.
+ virtual void OnNewSuggestions(Category category) = 0;
// Fired when the status of a suggestions category changed. When the status
// changes to an unavailable status, the suggestions of the respective
« no previous file with comments | « chrome/browser/ui/webui/snippets_internals_message_handler.cc ('k') | components/ntp_snippets/content_suggestions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698