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

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

Issue 2297493002: Revert of Add OfflinePageSuggestionsProviderTest (Closed)
Patch Set: Created 4 years, 3 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 29 matching lines...) Expand all
40 bool download_manager_ui_enabled, 40 bool download_manager_ui_enabled,
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 friend class OfflinePageSuggestionsProviderTest;
51
52 // ContentSuggestionsProvider implementation. 50 // ContentSuggestionsProvider implementation.
53 CategoryStatus GetCategoryStatus(Category category) override; 51 CategoryStatus GetCategoryStatus(Category category) override;
54 CategoryInfo GetCategoryInfo(Category category) override; 52 CategoryInfo GetCategoryInfo(Category category) override;
55 void DismissSuggestion(const std::string& suggestion_id) override; 53 void DismissSuggestion(const std::string& suggestion_id) override;
56 void FetchSuggestionImage(const std::string& suggestion_id, 54 void FetchSuggestionImage(const std::string& suggestion_id,
57 const ImageFetchedCallback& callback) override; 55 const ImageFetchedCallback& callback) override;
58 void ClearCachedSuggestions(Category category) override; 56 void ClearCachedSuggestions(Category category) override;
59 void GetDismissedSuggestionsForDebugging( 57 void GetDismissedSuggestionsForDebugging(
60 Category category, 58 Category category,
61 const DismissedSuggestionsCallback& callback) override; 59 const DismissedSuggestionsCallback& callback) override;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Whether the Download Manager UI is enabled, in which case the More button 122 // Whether the Download Manager UI is enabled, in which case the More button
125 // for the Downloads section can redirect there. 123 // for the Downloads section can redirect there.
126 const bool download_manager_ui_enabled_; 124 const bool download_manager_ui_enabled_;
127 125
128 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); 126 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider);
129 }; 127 };
130 128
131 } // namespace ntp_snippets 129 } // namespace ntp_snippets
132 130
133 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_ 131 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_
OLDNEW
« no previous file with comments | « components/ntp_snippets/BUILD.gn ('k') | components/ntp_snippets/offline_pages/offline_page_suggestions_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698