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

Unified Diff: components/ntp_snippets/reading_list/reading_list_distillation_state_util.h

Issue 2780793002: Add extra information for ReadingList ContentSuggestion (Closed)
Patch Set: Address comments Created 3 years, 9 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
Index: components/ntp_snippets/reading_list/reading_list_distillation_state_util.h
diff --git a/components/ntp_snippets/reading_list/reading_list_distillation_state_util.h b/components/ntp_snippets/reading_list/reading_list_distillation_state_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..a00553fc98ab2af28e92b6ce28643d0937ccf1df
--- /dev/null
+++ b/components/ntp_snippets/reading_list/reading_list_distillation_state_util.h
@@ -0,0 +1,23 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_NTP_SNIPPETS_READING_LIST_READING_LIST_DISTILLATION_STATE_UTIL_H_
+#define COMPONENTS_NTP_SNIPPETS_READING_LIST_READING_LIST_DISTILLATION_STATE_UTIL_H_
+
+#include "components/ntp_snippets/content_suggestion.h"
+#include "components/reading_list/core/reading_list_entry.h"
+
+namespace ntp_snippets {
+
+ReadingListEntry::DistillationState ReadingListStateFromSuggestionState(
+ ReadingListSuggestionExtra::ReadingListSuggestionDistilledState
+ distilled_state);
+
+ReadingListSuggestionExtra::ReadingListSuggestionDistilledState
+SuggestionStateFromReadingListState(
+ ReadingListEntry::DistillationState distilled_state);
+
+} // namespace ntp_snippets
+
+#endif // COMPONENTS_NTP_SNIPPETS_READING_LIST_READING_LIST_DISTILLATION_STATE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698