| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 50 friend class OfflinePageSuggestionsProviderTest; |
| 51 | 51 |
| 52 // ContentSuggestionsProvider implementation. | 52 // ContentSuggestionsProvider implementation. |
| 53 CategoryStatus GetCategoryStatus(Category category) override; | 53 CategoryStatus GetCategoryStatus(Category category) override; |
| 54 CategoryInfo GetCategoryInfo(Category category) override; | 54 CategoryInfo GetCategoryInfo(Category category) override; |
| 55 void DismissSuggestion(const std::string& suggestion_id) override; | 55 void DismissSuggestion(const ContentSuggestion::ID& suggestion_id) override; |
| 56 void FetchSuggestionImage(const std::string& suggestion_id, | 56 void FetchSuggestionImage(const ContentSuggestion::ID& suggestion_id, |
| 57 const ImageFetchedCallback& callback) override; | 57 const ImageFetchedCallback& callback) override; |
| 58 void ClearHistory( | 58 void ClearHistory( |
| 59 base::Time begin, | 59 base::Time begin, |
| 60 base::Time end, | 60 base::Time end, |
| 61 const base::Callback<bool(const GURL& url)>& filter) override; | 61 const base::Callback<bool(const GURL& url)>& filter) override; |
| 62 void ClearCachedSuggestions(Category category) override; | 62 void ClearCachedSuggestions(Category category) override; |
| 63 void GetDismissedSuggestionsForDebugging( | 63 void GetDismissedSuggestionsForDebugging( |
| 64 Category category, | 64 Category category, |
| 65 const DismissedSuggestionsCallback& callback) override; | 65 const DismissedSuggestionsCallback& callback) override; |
| 66 void ClearDismissedSuggestionsForDebugging(Category category) override; | 66 void ClearDismissedSuggestionsForDebugging(Category category) override; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // Whether the Download Manager UI is enabled, in which case the More button | 128 // Whether the Download Manager UI is enabled, in which case the More button |
| 129 // for the Downloads section can redirect there. | 129 // for the Downloads section can redirect there. |
| 130 const bool download_manager_ui_enabled_; | 130 const bool download_manager_ui_enabled_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); | 132 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace ntp_snippets | 135 } // namespace ntp_snippets |
| 136 | 136 |
| 137 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ | 137 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID
ER_H_ |
| OLD | NEW |