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

Unified Diff: components/ntp_snippets/proto/ntp_snippets.proto

Issue 1987333003: [NTP Snippets] Persist snippets in a LevelDB instead of prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test memleaks Created 4 years, 7 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/proto/ntp_snippets.proto
diff --git a/components/ntp_snippets/proto/ntp_snippets.proto b/components/ntp_snippets/proto/ntp_snippets.proto
new file mode 100644
index 0000000000000000000000000000000000000000..49d46bcb494c6bdd3c6007ffd737f3ecc16d7d8c
--- /dev/null
+++ b/components/ntp_snippets/proto/ntp_snippets.proto
@@ -0,0 +1,27 @@
+// Copyright 2016 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.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package ntp_snippets;
+
+message SnippetSourceProto {
+ optional string url = 1;
+ optional string publisher_name = 2;
+ optional string amp_url = 3;
+}
+
+message SnippetProto {
+ optional string id = 1;
+ optional string title = 2;
+ optional string snippet = 3;
+ optional string salient_image_url = 4;
+ optional int64 publish_date = 5;
+ optional int64 expiry_date = 6;
+ optional float score = 7;
+ repeated SnippetSourceProto sources = 8;
+ optional bool discarded = 9;
+}
« no previous file with comments | « components/ntp_snippets/proto/BUILD.gn ('k') | ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698