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

Unified Diff: components/ntp_snippets/content_suggestion.h

Issue 2421463002: FetchMore functionality backend (Closed)
Patch Set: NTBR. Rebasing a lot. 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/content_suggestion.h
diff --git a/components/ntp_snippets/content_suggestion.h b/components/ntp_snippets/content_suggestion.h
index ef6a5d5441c0ae4c8ec3f2e1ed200460ec0af850..979ed4d21352d7469879b26a322ba58b05b99602 100644
--- a/components/ntp_snippets/content_suggestion.h
+++ b/components/ntp_snippets/content_suggestion.h
@@ -15,6 +15,8 @@
namespace ntp_snippets {
+class NTPSnippet;
+
// A content suggestion for the new tab page, which can be an article or an
// offline page, for example.
class ContentSuggestion {
@@ -49,6 +51,9 @@ class ContentSuggestion {
ContentSuggestion(ContentSuggestion&&);
ContentSuggestion& operator=(ContentSuggestion&&);
+ static ContentSuggestion FromSnippet(Category category,
vitaliii 2016/11/01 23:29:57 Can this be a constructor instead?
fhorschig 2016/11/02 05:05:27 Yes. This deprecated code was dropped in CL 244616
+ const NTPSnippet* snippet);
+
~ContentSuggestion();
// An ID for identifying the suggestion. The ID is unique application-wide.

Powered by Google App Engine
This is Rietveld 408576698