| 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 18 matching lines...) Expand all Loading... |
| 29 bookmarks::BookmarkModel* bookmark_model); | 29 bookmarks::BookmarkModel* bookmark_model); |
| 30 ~BookmarkSuggestionsProvider() override; | 30 ~BookmarkSuggestionsProvider() override; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 // ContentSuggestionsProvider implementation. | 33 // ContentSuggestionsProvider implementation. |
| 34 std::vector<Category> GetProvidedCategories() override; | 34 std::vector<Category> GetProvidedCategories() override; |
| 35 CategoryStatus GetCategoryStatus(Category category) override; | 35 CategoryStatus GetCategoryStatus(Category category) override; |
| 36 void DismissSuggestion(const std::string& suggestion_id) override; | 36 void DismissSuggestion(const std::string& suggestion_id) override; |
| 37 void FetchSuggestionImage(const std::string& suggestion_id, | 37 void FetchSuggestionImage(const std::string& suggestion_id, |
| 38 const ImageFetchedCallback& callback) override; | 38 const ImageFetchedCallback& callback) override; |
| 39 void ClearCachedSuggestionsForDebugging() override; | 39 void ClearCachedSuggestionsForDebugging(Category category) override; |
| 40 void ClearDismissedSuggestionsForDebugging() override; | 40 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( |
| 41 Category category) override; |
| 42 void ClearDismissedSuggestionsForDebugging(Category category) override; |
| 41 | 43 |
| 42 // bookmarks::BookmarkModelObserver implementation. | 44 // bookmarks::BookmarkModelObserver implementation. |
| 43 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, | 45 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, |
| 44 bool ids_reassigned) override; | 46 bool ids_reassigned) override; |
| 45 void OnWillChangeBookmarkMetaInfo( | 47 void OnWillChangeBookmarkMetaInfo( |
| 46 bookmarks::BookmarkModel* model, | 48 bookmarks::BookmarkModel* model, |
| 47 const bookmarks::BookmarkNode* node) override; | 49 const bookmarks::BookmarkNode* node) override; |
| 48 void BookmarkMetaInfoChanged(bookmarks::BookmarkModel* model, | 50 void BookmarkMetaInfoChanged(bookmarks::BookmarkModel* model, |
| 49 const bookmarks::BookmarkNode* node) override; | 51 const bookmarks::BookmarkNode* node) override; |
| 50 | 52 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 95 |
| 94 base::Time node_to_change_last_visit_date_; | 96 base::Time node_to_change_last_visit_date_; |
| 95 base::Time end_of_list_last_visit_date_; | 97 base::Time end_of_list_last_visit_date_; |
| 96 | 98 |
| 97 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider); | 99 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider); |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 } // namespace ntp_snippets | 102 } // namespace ntp_snippets |
| 101 | 103 |
| 102 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ | 104 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ |
| OLD | NEW |