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

Side by Side Diff: components/ntp_snippets/remote/proto/ntp_snippets.proto

Issue 2402323002: [NTP Snippets] Persist non-article remote suggestions in the DB (Closed)
Patch Set: review Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « components/ntp_snippets/remote/ntp_snippets_service_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package ntp_snippets; 9 package ntp_snippets;
10 10
11 message SnippetSourceProto { 11 message SnippetSourceProto {
12 optional string url = 1; 12 optional string url = 1;
13 optional string publisher_name = 2; 13 optional string publisher_name = 2;
14 optional string amp_url = 3; 14 optional string amp_url = 3;
15 } 15 }
16 16
17 message SnippetProto { 17 message SnippetProto {
18 optional string id = 1; 18 optional string id = 1;
19 optional string title = 2; 19 optional string title = 2;
20 optional string snippet = 3; 20 optional string snippet = 3;
21 optional string salient_image_url = 4; 21 optional string salient_image_url = 4;
22 optional int64 publish_date = 5; 22 optional int64 publish_date = 5;
23 optional int64 expiry_date = 6; 23 optional int64 expiry_date = 6;
24 optional float score = 7; 24 optional float score = 7;
25 repeated SnippetSourceProto sources = 8; 25 repeated SnippetSourceProto sources = 8;
26 optional bool dismissed = 9; 26 optional bool dismissed = 9;
27 optional int32 remote_category_id = 10;
27 } 28 }
28 29
29 message SnippetImageProto { 30 message SnippetImageProto {
30 optional bytes data = 1; 31 optional bytes data = 1;
31 } 32 }
OLDNEW
« no previous file with comments | « components/ntp_snippets/remote/ntp_snippets_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698