| 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 FetchMore(const Category& category, |
| 51 FetchedMoreCallback callback) override; |
| 50 void ClearHistory( | 52 void ClearHistory( |
| 51 base::Time begin, | 53 base::Time begin, |
| 52 base::Time end, | 54 base::Time end, |
| 53 const base::Callback<bool(const GURL& url)>& filter) override; | 55 const base::Callback<bool(const GURL& url)>& filter) override; |
| 54 void ClearCachedSuggestions(Category category) override; | 56 void ClearCachedSuggestions(Category category) override; |
| 55 void GetDismissedSuggestionsForDebugging( | 57 void GetDismissedSuggestionsForDebugging( |
| 56 Category category, | 58 Category category, |
| 57 const DismissedSuggestionsCallback& callback) override; | 59 const DismissedSuggestionsCallback& callback) override; |
| 58 void ClearDismissedSuggestionsForDebugging(Category category) override; | 60 void ClearDismissedSuggestionsForDebugging(Category category) override; |
| 59 | 61 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 PrefService* pref_service_; | 112 PrefService* pref_service_; |
| 111 | 113 |
| 112 base::WeakPtrFactory<RecentTabSuggestionsProvider> weak_ptr_factory_; | 114 base::WeakPtrFactory<RecentTabSuggestionsProvider> weak_ptr_factory_; |
| 113 | 115 |
| 114 DISALLOW_COPY_AND_ASSIGN(RecentTabSuggestionsProvider); | 116 DISALLOW_COPY_AND_ASSIGN(RecentTabSuggestionsProvider); |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } // namespace ntp_snippets | 119 } // namespace ntp_snippets |
| 118 | 120 |
| 119 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_RECENT_TAB_SUGGESTIONS_PROVIDER
_H_ | 121 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_RECENT_TAB_SUGGESTIONS_PROVIDER
_H_ |
| OLD | NEW |