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

Side by Side Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 2232783002: Support action button to fetch more content suggestions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snippetsbridge
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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_NTP_SNIPPETS_SERVICE_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
6 #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ 6 #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 // (Re)schedules the periodic fetching of snippets. This is necessary because 122 // (Re)schedules the periodic fetching of snippets. This is necessary because
123 // the schedule depends on the time of day. 123 // the schedule depends on the time of day.
124 void RescheduleFetching(); 124 void RescheduleFetching();
125 125
126 // ContentSuggestionsProvider implementation 126 // ContentSuggestionsProvider implementation
127 std::vector<Category> GetProvidedCategories() override; 127 std::vector<Category> GetProvidedCategories() override;
128 CategoryStatus GetCategoryStatus(Category category) override; 128 CategoryStatus GetCategoryStatus(Category category) override;
129 CategoryInfo GetCategoryInfo(Category category) override; 129 CategoryInfo GetCategoryInfo(Category category) override;
130 void FetchMoreSuggestions(Category category) override;
130 void DismissSuggestion(const std::string& suggestion_id) override; 131 void DismissSuggestion(const std::string& suggestion_id) override;
131 void FetchSuggestionImage(const std::string& suggestion_id, 132 void FetchSuggestionImage(const std::string& suggestion_id,
132 const ImageFetchedCallback& callback) override; 133 const ImageFetchedCallback& callback) override;
133 void ClearCachedSuggestionsForDebugging(Category category) override; 134 void ClearCachedSuggestionsForDebugging(Category category) override;
134 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( 135 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging(
135 Category category) override; 136 Category category) override;
136 void ClearDismissedSuggestionsForDebugging(Category category) override; 137 void ClearDismissedSuggestionsForDebugging(Category category) override;
137 138
138 // Returns the lists of suggestion hosts the snippets are restricted to. 139 // Returns the lists of suggestion hosts the snippets are restricted to.
139 std::set<std::string> GetSuggestionsHosts() const; 140 std::set<std::string> GetSuggestionsHosts() const;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 bool fetch_after_load_; 304 bool fetch_after_load_;
304 305
305 const Category provided_category_; 306 const Category provided_category_;
306 307
307 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService); 308 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService);
308 }; 309 };
309 310
310 } // namespace ntp_snippets 311 } // namespace ntp_snippets
311 312
312 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ 313 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698