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() override; | 47 void ClearCachedSuggestionsForDebugging() override; |
47 void ClearDismissedSuggestionsForDebugging() override; | 48 void ClearDismissedSuggestionsForDebugging() override; |
48 | 49 |
49 // OfflinePageModel::Observer implementation. | 50 // OfflinePageModel::Observer implementation. |
50 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; | 51 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; |
51 void OfflinePageModelChanged(offline_pages::OfflinePageModel* model) override; | 52 void OfflinePageModelChanged(offline_pages::OfflinePageModel* model) override; |
52 void OfflinePageDeleted(int64_t offline_id, | 53 void OfflinePageDeleted(int64_t offline_id, |
(...skipping 14 matching lines...) Expand all Loading... |
67 offline_pages::OfflinePageModel* offline_page_model_; | 68 offline_pages::OfflinePageModel* offline_page_model_; |
68 | 69 |
69 const Category provided_category_; | 70 const Category provided_category_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); | 72 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace ntp_snippets | 75 } // namespace ntp_snippets |
75 | 76 |
76 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ | 77 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ |
OLD | NEW |