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