Chromium Code Reviews| 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 066ea1e1f23d9ae4c9756a598c91f750e38abb49..99e41d96f29469879a0f00408b9dd71a772ebd64 100644 |
| --- a/components/ntp_snippets/content_suggestions_provider.h |
| +++ b/components/ntp_snippets/content_suggestions_provider.h |
| @@ -90,15 +90,24 @@ class ContentSuggestionsProvider { |
| virtual void FetchSuggestionImage(const std::string& suggestion_id, |
| const ImageFetchedCallback& callback) = 0; |
| - // Used only for debugging purposes. Clears all caches so that the next |
| - // fetch starts from scratch. |
| - virtual void ClearCachedSuggestionsForDebugging() = 0; |
| + // Used only for debugging purposes. Clears all caches for the given category, |
| + // so that the next fetch starts from scratch. |
| + virtual void ClearCachedSuggestionsForDebugging(Category category) = 0; |
| + |
| + // Used only for debugging purposes. Retrieves suggestions for the given |
| + // |category| |
|
Marc Treib
2016/08/08 13:52:09
nit: messed up line break
Philipp Keck
2016/08/08 14:15:09
Done.
|
| + // that have previously been dismissed and are still stored in the provider. |
| + // If the provider doesn't store dismissed suggestions for the given |
| + // |category|, it always returns an empty vector. |
| + virtual std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( |
| + Category category) = 0; |
| // Used only for debugging purposes. Clears the cache of dismissed |
| - // suggestions, if present, so that no suggestions are suppressed. This does |
| - // not necessarily make previously dismissed suggestions reappear, as they may |
| - // have been permanently deleted, depending on the provider implementation. |
| - virtual void ClearDismissedSuggestionsForDebugging() = 0; |
| + // suggestions for the given |category|, if present, so that no suggestions |
| + // are suppressed. This does not necessarily make previously dismissed |
| + // suggestions reappear, as they may have been permanently deleted, depending |
| + // on the provider implementation. |
| + virtual void ClearDismissedSuggestionsForDebugging(Category category) = 0; |
| protected: |
| ContentSuggestionsProvider(Observer* observer, |