| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_
H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_
H_ |
| 6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_
H_ | 6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_
H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 OfflinePageSuggestionsProvider( | 33 OfflinePageSuggestionsProvider( |
| 34 ContentSuggestionsProvider::Observer* observer, | 34 ContentSuggestionsProvider::Observer* observer, |
| 35 CategoryFactory* category_factory, | 35 CategoryFactory* category_factory, |
| 36 offline_pages::OfflinePageModel* offline_page_model); | 36 offline_pages::OfflinePageModel* offline_page_model); |
| 37 ~OfflinePageSuggestionsProvider() override; | 37 ~OfflinePageSuggestionsProvider() override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // ContentSuggestionsProvider implementation. | 40 // ContentSuggestionsProvider implementation. |
| 41 std::vector<Category> GetProvidedCategories() override; | 41 std::vector<Category> GetProvidedCategories() override; |
| 42 CategoryStatus GetCategoryStatus(Category category) override; | 42 CategoryStatus GetCategoryStatus(Category category) override; |
| 43 CategoryInfo GetCategoryInfo(Category category) override; |
| 43 void DismissSuggestion(const std::string& suggestion_id) override; | 44 void DismissSuggestion(const std::string& suggestion_id) override; |
| 44 void FetchSuggestionImage(const std::string& suggestion_id, | 45 void FetchSuggestionImage(const std::string& suggestion_id, |
| 45 const ImageFetchedCallback& callback) override; | 46 const ImageFetchedCallback& callback) override; |
| 46 void ClearCachedSuggestionsForDebugging(Category category) override; | 47 void ClearCachedSuggestionsForDebugging(Category category) override; |
| 47 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( | 48 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( |
| 48 Category category) override; | 49 Category category) override; |
| 49 void ClearDismissedSuggestionsForDebugging(Category category) override; | 50 void ClearDismissedSuggestionsForDebugging(Category category) override; |
| 50 | 51 |
| 51 // OfflinePageModel::Observer implementation. | 52 // OfflinePageModel::Observer implementation. |
| 52 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; | 53 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 69 offline_pages::OfflinePageModel* offline_page_model_; | 70 offline_pages::OfflinePageModel* offline_page_model_; |
| 70 | 71 |
| 71 const Category provided_category_; | 72 const Category provided_category_; |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); | 74 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace ntp_snippets | 77 } // namespace ntp_snippets |
| 77 | 78 |
| 78 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ | 79 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ |
| OLD | NEW |