| 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_RECENT_TAB_SUGGESTIONS_PROVIDER_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_RECENT_TAB_SUGGESTIONS_PROVIDER_H_ |
| 6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_RECENT_TAB_SUGGESTIONS_PROVIDER_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_RECENT_TAB_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 scoped_refptr<OfflinePageProxy> offline_page_proxy, | 40 scoped_refptr<OfflinePageProxy> offline_page_proxy, |
| 41 PrefService* pref_service); | 41 PrefService* pref_service); |
| 42 ~RecentTabSuggestionsProvider() override; | 42 ~RecentTabSuggestionsProvider() override; |
| 43 | 43 |
| 44 // ContentSuggestionsProvider implementation. | 44 // ContentSuggestionsProvider implementation. |
| 45 CategoryStatus GetCategoryStatus(Category category) override; | 45 CategoryStatus GetCategoryStatus(Category category) override; |
| 46 CategoryInfo GetCategoryInfo(Category category) override; | 46 CategoryInfo GetCategoryInfo(Category category) override; |
| 47 void DismissSuggestion(const ContentSuggestion::ID& suggestion_id) override; | 47 void DismissSuggestion(const ContentSuggestion::ID& suggestion_id) override; |
| 48 void FetchSuggestionImage(const ContentSuggestion::ID& suggestion_id, | 48 void FetchSuggestionImage(const ContentSuggestion::ID& suggestion_id, |
| 49 const ImageFetchedCallback& callback) override; | 49 const ImageFetchedCallback& callback) override; |
| 50 void Fetch(const Category& category, |
| 51 const std::set<std::string>& known_suggestion_ids, |
| 52 FetchingCallback callback) override; |
| 50 void ClearHistory( | 53 void ClearHistory( |
| 51 base::Time begin, | 54 base::Time begin, |
| 52 base::Time end, | 55 base::Time end, |
| 53 const base::Callback<bool(const GURL& url)>& filter) override; | 56 const base::Callback<bool(const GURL& url)>& filter) override; |
| 54 void ClearCachedSuggestions(Category category) override; | 57 void ClearCachedSuggestions(Category category) override; |
| 55 void GetDismissedSuggestionsForDebugging( | 58 void GetDismissedSuggestionsForDebugging( |
| 56 Category category, | 59 Category category, |
| 57 const DismissedSuggestionsCallback& callback) override; | 60 const DismissedSuggestionsCallback& callback) override; |
| 58 void ClearDismissedSuggestionsForDebugging(Category category) override; | 61 void ClearDismissedSuggestionsForDebugging(Category category) override; |
| 59 | 62 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 PrefService* pref_service_; | 113 PrefService* pref_service_; |
| 111 | 114 |
| 112 base::WeakPtrFactory<RecentTabSuggestionsProvider> weak_ptr_factory_; | 115 base::WeakPtrFactory<RecentTabSuggestionsProvider> weak_ptr_factory_; |
| 113 | 116 |
| 114 DISALLOW_COPY_AND_ASSIGN(RecentTabSuggestionsProvider); | 117 DISALLOW_COPY_AND_ASSIGN(RecentTabSuggestionsProvider); |
| 115 }; | 118 }; |
| 116 | 119 |
| 117 } // namespace ntp_snippets | 120 } // namespace ntp_snippets |
| 118 | 121 |
| 119 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_RECENT_TAB_SUGGESTIONS_PROVIDER
_H_ | 122 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_RECENT_TAB_SUGGESTIONS_PROVIDER
_H_ |
| OLD | NEW |