Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h

Issue 2260703004: Remove ContentSuggestionsProvider::GetProvidedCategories(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Philipp's comments and rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
30 BookmarkSuggestionsProvider(ContentSuggestionsProvider::Observer* observer, 30 BookmarkSuggestionsProvider(ContentSuggestionsProvider::Observer* observer,
31 CategoryFactory* category_factory, 31 CategoryFactory* category_factory,
32 bookmarks::BookmarkModel* bookmark_model, 32 bookmarks::BookmarkModel* bookmark_model,
33 PrefService* pref_service); 33 PrefService* pref_service);
34 ~BookmarkSuggestionsProvider() override; 34 ~BookmarkSuggestionsProvider() override;
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 std::vector<Category> GetProvidedCategories() override;
41 CategoryStatus GetCategoryStatus(Category category) override; 40 CategoryStatus GetCategoryStatus(Category category) override;
42 CategoryInfo GetCategoryInfo(Category category) override; 41 CategoryInfo GetCategoryInfo(Category category) override;
43 void DismissSuggestion(const std::string& suggestion_id) override; 42 void DismissSuggestion(const std::string& suggestion_id) override;
44 void FetchSuggestionImage(const std::string& suggestion_id, 43 void FetchSuggestionImage(const std::string& suggestion_id,
45 const ImageFetchedCallback& callback) override; 44 const ImageFetchedCallback& callback) override;
46 void ClearCachedSuggestionsForDebugging(Category category) override; 45 void ClearCachedSuggestionsForDebugging(Category category) override;
47 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( 46 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging(
48 Category category) override; 47 Category category) override;
49 void ClearDismissedSuggestionsForDebugging(Category category) override; 48 void ClearDismissedSuggestionsForDebugging(Category category) override;
50 49
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // For six weeks after first installing M54, this is true and the 108 // For six weeks after first installing M54, this is true and the
110 // fallback implemented in BookmarkLastVisitUtils is activated. 109 // fallback implemented in BookmarkLastVisitUtils is activated.
111 bool creation_date_fallback_; 110 bool creation_date_fallback_;
112 111
113 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider); 112 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider);
114 }; 113 };
115 114
116 } // namespace ntp_snippets 115 } // namespace ntp_snippets
117 116
118 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ 117 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698