Chromium Code Reviews| Index: ios/chrome/browser/content_suggestions/mediator_util.h |
| diff --git a/ios/chrome/browser/content_suggestions/mediator_util.h b/ios/chrome/browser/content_suggestions/mediator_util.h |
| index 69a5d718cf648fbcdd463ed88b53161171907b56..8efb75debe2f022939b85f7f7a2059599b98bedd 100644 |
| --- a/ios/chrome/browser/content_suggestions/mediator_util.h |
| +++ b/ios/chrome/browser/content_suggestions/mediator_util.h |
| @@ -10,6 +10,7 @@ |
| #include "components/ntp_snippets/category_info.h" |
| #include "components/ntp_snippets/content_suggestion.h" |
| #include "components/ntp_snippets/status.h" |
| +#include "components/ntp_tiles/ntp_tile.h" |
| #import "ios/chrome/browser/ui/content_suggestions/content_suggestion.h" |
| #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.h" |
| @@ -59,4 +60,17 @@ ntp_snippets::ContentSuggestion::ID SuggestionIDForSectionID( |
| ContentSuggestionsCategoryWrapper* category, |
| const std::string& id_in_category); |
| +// Creates and returns an empty suggestions. |
|
lpromero
2017/04/04 11:25:20
*suggestion
gambard
2017/04/04 16:14:26
Done.
|
| +ContentSuggestion* EmptySuggestion(); |
| + |
| +// Creates and returns a SectionInfo for the Most Visited section. |
| +ContentSuggestionsSectionInformation* MostVisitedSectionInformation(); |
| + |
| +// Records the page impression of the ntp tiles. |
| +void RecordPageImpression(const std::vector<ntp_tiles::NTPTile>& mostVisited); |
| + |
| +// Converts a ntp_snippets::ContentSuggestion to an Objective-C |
| +// ContentSuggestion. |
| +ContentSuggestion* ConvertNTPTile(const ntp_tiles::NTPTile& tile); |
| + |
| #endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_MEDIATOR_UTIL_H_ |