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

Unified Diff: components/ntp_snippets/bookmarks/bookmark_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/bookmarks/bookmark_suggestions_provider.h
diff --git a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h
index 706514d2fa1a4adaafa13b57e7bc7f3a83bfdf91..20dfcc32c9b47b5049a5f39f67fc7c27d56e3a51 100644
--- a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h
+++ b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h
@@ -42,8 +42,9 @@ class BookmarkSuggestionsProvider : 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,
tschumann 2016/11/02 11:23:22 @dgn (to get quicker feedback as Friedrich is not
dgn 2016/11/02 12:04:33 Yes, I also would prefer having const references r
fhorschig 2016/11/03 01:53:14 Done. BTW: I used the ownership of the set to std
+ FetchingCallback callback) override;
void ClearHistory(
base::Time begin,
base::Time end,

Powered by Google App Engine
This is Rietveld 408576698