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

Unified Diff: components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h

Issue 2466863003: Finalize backend for fetching more NTPSnippets. (Closed)
Patch Set: Known suggestion are now a parameter for Fetch. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h
diff --git a/components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h b/components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h
index 0cf0e5fa868f6b79ec06f3546cef088c8cf0ccca..22de702ca85bc5a47a569476a9a333bbba067661 100644
--- a/components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h
+++ b/components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h
@@ -47,8 +47,9 @@ class RecentTabSuggestionsProvider : public ContentSuggestionsProvider,
void DismissSuggestion(const ContentSuggestion::ID& suggestion_id) override;
void FetchSuggestionImage(const ContentSuggestion::ID& suggestion_id,
const ImageFetchedCallback& callback) override;
- void FetchMore(const Category& category,
- FetchedMoreCallback callback) override;
+ void Fetch(const Category& category,
+ std::set<std::string> known_suggestion_ids,
+ FetchingCallback callback) override;
void ClearHistory(
base::Time begin,
base::Time end,

Powered by Google App Engine
This is Rietveld 408576698