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

Unified Diff: components/ntp_snippets/ntp_snippet.h

Issue 2059203002: Add ContentSuggestion, ContentSuggestionCategory and ContentSuggestionProviderType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed includes Created 4 years, 6 months 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 | « components/ntp_snippets/content_suggestions_provider_type.h ('k') | components/ntp_snippets/ntp_snippet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippet.h
diff --git a/components/ntp_snippets/ntp_snippet.h b/components/ntp_snippets/ntp_snippet.h
index 2d92bd31c85194a35b95d1c9cdd43d05abbb42f7..416cffca7dbedbd016b845a4271d2416c0d4d96d 100644
--- a/components/ntp_snippets/ntp_snippet.h
+++ b/components/ntp_snippets/ntp_snippet.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/time/time.h"
+#include "components/ntp_snippets/content_suggestion.h"
#include "url/gurl.h"
namespace base {
@@ -125,6 +126,8 @@ class NTPSnippet {
bool is_discarded() const { return is_discarded_; }
void set_discarded(bool discarded) { is_discarded_ = discarded; }
+ std::unique_ptr<ContentSuggestion> ToContentSuggestion() const;
+
// Public for testing.
static base::Time TimeFromJsonString(const std::string& timestamp_str);
static std::string TimeToJsonString(const base::Time& time);
« no previous file with comments | « components/ntp_snippets/content_suggestions_provider_type.h ('k') | components/ntp_snippets/ntp_snippet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698