Index: components/ntp_snippets/ntp_snippets_service.h |
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h |
index 0d4a1226f36ed6fe65f53fd3af1a4d9768402eb5..d072f8a77818f29068591884fbb23235bcdaf542 100644 |
--- a/components/ntp_snippets/ntp_snippets_service.h |
+++ b/components/ntp_snippets/ntp_snippets_service.h |
@@ -21,6 +21,7 @@ |
#include "components/keyed_service/core/keyed_service.h" |
#include "components/ntp_snippets/content_suggestion.h" |
#include "components/ntp_snippets/content_suggestions_category.h" |
+#include "components/ntp_snippets/content_suggestions_category_factory.h" |
#include "components/ntp_snippets/content_suggestions_category_status.h" |
#include "components/ntp_snippets/content_suggestions_provider.h" |
#include "components/ntp_snippets/ntp_snippet.h" |
@@ -76,6 +77,7 @@ class NTPSnippetsService : public KeyedService, |
NTPSnippetsService(bool enabled, |
PrefService* pref_service, |
suggestions::SuggestionsService* suggestions_service, |
+ ContentSuggestionsCategoryFactory* category_factory, |
const std::string& application_language_code, |
NTPSnippetsScheduler* scheduler, |
std::unique_ptr<NTPSnippetsFetcher> snippets_fetcher, |
@@ -139,6 +141,7 @@ class NTPSnippetsService : public KeyedService, |
// ContentSuggestionsProvider implementation |
// TODO(pke): At some point reorder the implementations in the .cc file |
// accordingly. |
+ std::vector<ContentSuggestionsCategory> GetProvidedCategories() override; |
void SetObserver(Observer* observer) override; |
ContentSuggestionsCategoryStatus GetCategoryStatus( |
ContentSuggestionsCategory category) override; |
@@ -323,6 +326,8 @@ class NTPSnippetsService : public KeyedService, |
// The fetch will be executed after the database load finishes. |
bool fetch_after_load_; |
+ const ContentSuggestionsCategory provided_category_; |
+ |
DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService); |
}; |