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

Unified Diff: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h

Issue 2553643003: [NTP::PhysicalWeb] Implement Fetch for "More" button. (Closed)
Patch Set: treib@ nit. Created 4 years 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
« no previous file with comments | « no previous file | components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h
diff --git a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h
index 76f4ed9db36d76b9f3001edae6d50aa53c153d59..77f3d21c0d075c64b3c1aff55d3db819ecedf7ec 100644
--- a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h
+++ b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h
@@ -60,6 +60,13 @@ class PhysicalWebPageSuggestionsProvider
// Manually requests all physical web pages and updates the suggestions.
void FetchPhysicalWebPages();
+ // Returns at most |max_count| ContentSuggestions with IDs not in
+ // |excluded_ids| and sorted by distance (the closest first). The raw pages
+ // are obtained from Physical Web data source.
+ std::vector<ContentSuggestion> GetMostRecentPhysicalWebPagesWithFilter(
+ int max_count,
+ const std::set<std::string>& excluded_ids);
+
// Converts an Physical Web page to a ContentSuggestion.
ContentSuggestion ConvertPhysicalWebPage(
const base::DictionaryValue& page) const;
« no previous file with comments | « no previous file | components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698