| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 static void RegisterProfilePrefs(PrefRegistrySimple* registry); | 47 static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 // ContentSuggestionsProvider implementation. | 50 // ContentSuggestionsProvider implementation. |
| 51 CategoryStatus GetCategoryStatus(Category category) override; | 51 CategoryStatus GetCategoryStatus(Category category) override; |
| 52 CategoryInfo GetCategoryInfo(Category category) override; | 52 CategoryInfo GetCategoryInfo(Category category) override; |
| 53 void DismissSuggestion(const std::string& suggestion_id) override; | 53 void DismissSuggestion(const std::string& suggestion_id) override; |
| 54 void FetchSuggestionImage(const std::string& suggestion_id, | 54 void FetchSuggestionImage(const std::string& suggestion_id, |
| 55 const ImageFetchedCallback& callback) override; | 55 const ImageFetchedCallback& callback) override; |
| 56 void ClearHistory(base::Time begin, base::Time end) override; |
| 56 void ClearCachedSuggestions(Category category) override; | 57 void ClearCachedSuggestions(Category category) override; |
| 57 void GetDismissedSuggestionsForDebugging( | 58 void GetDismissedSuggestionsForDebugging( |
| 58 Category category, | 59 Category category, |
| 59 const DismissedSuggestionsCallback& callback) override; | 60 const DismissedSuggestionsCallback& callback) override; |
| 60 void ClearDismissedSuggestionsForDebugging(Category category) override; | 61 void ClearDismissedSuggestionsForDebugging(Category category) override; |
| 61 | 62 |
| 62 // OfflinePageModel::Observer implementation. | 63 // OfflinePageModel::Observer implementation. |
| 63 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; | 64 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; |
| 64 void OfflinePageModelChanged(offline_pages::OfflinePageModel* model) override; | 65 void OfflinePageModelChanged(offline_pages::OfflinePageModel* model) override; |
| 65 void OfflinePageDeleted(int64_t offline_id, | 66 void OfflinePageDeleted(int64_t offline_id, |
| (...skipping 56 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 | 123 // Whether the Download Manager UI is enabled, in which case the More button |
| 123 // for the Downloads section can redirect there. | 124 // for the Downloads section can redirect there. |
| 124 const bool download_manager_ui_enabled_; | 125 const bool download_manager_ui_enabled_; |
| 125 | 126 |
| 126 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); | 127 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace ntp_snippets | 130 } // namespace ntp_snippets |
| 130 | 131 |
| 131 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ | 132 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ |
| OLD | NEW |