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

Side by Side Diff: components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h

Issue 2260703004: Remove ContentSuggestionsProvider::GetProvidedCategories(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_ H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_ H_
6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_ H_ 6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_ H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 30 matching lines...) Expand all
41 ContentSuggestionsProvider::Observer* observer, 41 ContentSuggestionsProvider::Observer* observer,
42 CategoryFactory* category_factory, 42 CategoryFactory* category_factory,
43 offline_pages::OfflinePageModel* offline_page_model, 43 offline_pages::OfflinePageModel* offline_page_model,
44 PrefService* pref_service); 44 PrefService* pref_service);
45 ~OfflinePageSuggestionsProvider() override; 45 ~OfflinePageSuggestionsProvider() override;
46 46
47 static void RegisterProfilePrefs(PrefRegistrySimple* registry); 47 static void RegisterProfilePrefs(PrefRegistrySimple* registry);
48 48
49 private: 49 private:
50 // ContentSuggestionsProvider implementation. 50 // ContentSuggestionsProvider implementation.
51 std::vector<Category> GetProvidedCategories() override;
52 CategoryStatus GetCategoryStatus(Category category) override; 51 CategoryStatus GetCategoryStatus(Category category) override;
53 CategoryInfo GetCategoryInfo(Category category) override; 52 CategoryInfo GetCategoryInfo(Category category) override;
54 void DismissSuggestion(const std::string& suggestion_id) override; 53 void DismissSuggestion(const std::string& suggestion_id) override;
55 void FetchSuggestionImage(const std::string& suggestion_id, 54 void FetchSuggestionImage(const std::string& suggestion_id,
56 const ImageFetchedCallback& callback) override; 55 const ImageFetchedCallback& callback) override;
57 void ClearCachedSuggestionsForDebugging(Category category) override; 56 void ClearCachedSuggestionsForDebugging(Category category) override;
58 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( 57 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging(
59 Category category) override; 58 Category category) override;
60 void ClearDismissedSuggestionsForDebugging(Category category) override; 59 void ClearDismissedSuggestionsForDebugging(Category category) override;
61 60
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Whether the Download Manager UI is enabled, in which case the More button 117 // Whether the Download Manager UI is enabled, in which case the More button
119 // for the Downloads section can redirect there. 118 // for the Downloads section can redirect there.
120 const bool download_manager_ui_enabled_; 119 const bool download_manager_ui_enabled_;
121 120
122 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); 121 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider);
123 }; 122 };
124 123
125 } // namespace ntp_snippets 124 } // namespace ntp_snippets
126 125
127 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_ 126 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698