| 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_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ |
| 6 #define COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 static void RegisterProfilePrefs(PrefRegistrySimple* registry); | 36 static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // ContentSuggestionsProvider implementation. | 39 // ContentSuggestionsProvider implementation. |
| 40 CategoryStatus GetCategoryStatus(Category category) override; | 40 CategoryStatus GetCategoryStatus(Category category) override; |
| 41 CategoryInfo GetCategoryInfo(Category category) override; | 41 CategoryInfo GetCategoryInfo(Category category) override; |
| 42 void DismissSuggestion(const std::string& suggestion_id) override; | 42 void DismissSuggestion(const std::string& suggestion_id) override; |
| 43 void FetchSuggestionImage(const std::string& suggestion_id, | 43 void FetchSuggestionImage(const std::string& suggestion_id, |
| 44 const ImageFetchedCallback& callback) override; | 44 const ImageFetchedCallback& callback) override; |
| 45 void RemoveURLsFromHistory(bool all_history, |
| 46 const std::vector<GURL>& deleted_urls) override; |
| 45 void ClearHistory( | 47 void ClearHistory( |
| 46 base::Time begin, | 48 base::Time begin, |
| 47 base::Time end, | 49 base::Time end, |
| 48 const base::Callback<bool(const GURL& url)>& filter) override; | 50 const base::Callback<bool(const GURL& url)>& filter) override; |
| 49 void ClearCachedSuggestions(Category category) override; | 51 void ClearCachedSuggestions(Category category) override; |
| 50 void GetDismissedSuggestionsForDebugging( | 52 void GetDismissedSuggestionsForDebugging( |
| 51 Category category, | 53 Category category, |
| 52 const DismissedSuggestionsCallback& callback) override; | 54 const DismissedSuggestionsCallback& callback) override; |
| 53 void ClearDismissedSuggestionsForDebugging(Category category) override; | 55 void ClearDismissedSuggestionsForDebugging(Category category) override; |
| 54 | 56 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // For six weeks after first installing M54, this is true and the | 115 // For six weeks after first installing M54, this is true and the |
| 114 // fallback implemented in BookmarkLastVisitUtils is activated. | 116 // fallback implemented in BookmarkLastVisitUtils is activated. |
| 115 bool creation_date_fallback_; | 117 bool creation_date_fallback_; |
| 116 | 118 |
| 117 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider); | 119 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider); |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 } // namespace ntp_snippets | 122 } // namespace ntp_snippets |
| 121 | 123 |
| 122 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ | 124 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ |
| OLD | NEW |