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 488aeab7388c3e1219a5eca831d327b0b2f6d5ce..7f771b5f4130be52b298381096fe0155c603981e 100644 |
--- a/components/ntp_snippets/content_suggestions_service.h |
+++ b/components/ntp_snippets/content_suggestions_service.h |
@@ -12,6 +12,7 @@ |
#include "base/callback_forward.h" |
#include "base/observer_list.h" |
+#include "base/optional.h" |
#include "components/keyed_service/core/keyed_service.h" |
#include "components/ntp_snippets/category_factory.h" |
#include "components/ntp_snippets/category_status.h" |
@@ -78,6 +79,9 @@ class ContentSuggestionsService : public KeyedService, |
// Gets the status of a category. |
CategoryStatus GetCategoryStatus(Category category) const; |
+ // Gets the meta information of a category. |
+ base::Optional<CategoryInfo> GetCategoryInfo(Category category) const; |
Bernhard Bauer
2016/08/09 09:18:33
Hum. You go to all these lengths to implement a mo
Marc Treib
2016/08/09 09:45:12
CategoryInfo doesn't have a copy ctor, so it can't
Philipp Keck
2016/08/09 10:03:06
Indeed, the only relevant call we have (https://co
Bernhard Bauer
2016/08/09 10:25:41
If you are saying that over time Optional<> will r
Philipp Keck
2016/08/09 11:24:27
The callsites will change soon:
https://codereview
|
+ |
// Gets the available suggestions for a category. The result is empty if the |
// category is available and empty, but also if the category is unavailable |
// for any reason, see |GetCategoryStatus()|. |