Chromium Code Reviews| 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..0653fc1ee7ef1709fa164e668d24687ab4d6980d 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_quantity| 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_quantity, |
|
Marc Treib
2016/12/05 15:55:19
max_count?
vitaliii
2016/12/06 07:30:21
Done.
|
| + const std::set<std::string>& excluded_ids); |
| + |
| // Converts an Physical Web page to a ContentSuggestion. |
| ContentSuggestion ConvertPhysicalWebPage( |
| const base::DictionaryValue& page) const; |