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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 29 matching lines...) Expand all Loading... |
40 bool download_manager_ui_enabled, | 40 bool download_manager_ui_enabled, |
41 ContentSuggestionsProvider::Observer* observer, | 41 ContentSuggestionsProvider::Observer* observer, |
42 CategoryFactory* category_factory, | 42 CategoryFactory* category_factory, |
43 offline_pages::OfflinePageModel* offline_page_model, | 43 offline_pages::OfflinePageModel* offline_page_model, |
44 PrefService* pref_service); | 44 PrefService* pref_service); |
45 ~OfflinePageSuggestionsProvider() override; | 45 ~OfflinePageSuggestionsProvider() override; |
46 | 46 |
47 static void RegisterProfilePrefs(PrefRegistrySimple* registry); | 47 static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
48 | 48 |
49 private: | 49 private: |
| 50 friend class OfflinePageSuggestionsProviderTest; |
| 51 |
50 // ContentSuggestionsProvider implementation. | 52 // ContentSuggestionsProvider implementation. |
51 CategoryStatus GetCategoryStatus(Category category) override; | 53 CategoryStatus GetCategoryStatus(Category category) override; |
52 CategoryInfo GetCategoryInfo(Category category) override; | 54 CategoryInfo GetCategoryInfo(Category category) override; |
53 void DismissSuggestion(const std::string& suggestion_id) override; | 55 void DismissSuggestion(const std::string& suggestion_id) override; |
54 void FetchSuggestionImage(const std::string& suggestion_id, | 56 void FetchSuggestionImage(const std::string& suggestion_id, |
55 const ImageFetchedCallback& callback) override; | 57 const ImageFetchedCallback& callback) override; |
56 void ClearCachedSuggestions(Category category) override; | 58 void ClearCachedSuggestions(Category category) override; |
57 void GetDismissedSuggestionsForDebugging( | 59 void GetDismissedSuggestionsForDebugging( |
58 Category category, | 60 Category category, |
59 const DismissedSuggestionsCallback& callback) override; | 61 const DismissedSuggestionsCallback& callback) override; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Whether the Download Manager UI is enabled, in which case the More button | 124 // Whether the Download Manager UI is enabled, in which case the More button |
123 // for the Downloads section can redirect there. | 125 // for the Downloads section can redirect there. |
124 const bool download_manager_ui_enabled_; | 126 const bool download_manager_ui_enabled_; |
125 | 127 |
126 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); | 128 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); |
127 }; | 129 }; |
128 | 130 |
129 } // namespace ntp_snippets | 131 } // namespace ntp_snippets |
130 | 132 |
131 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ | 133 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ |
OLD | NEW |