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
3// found in the LICENSE file.
4//
5// Sync protocol datatype extension for the reading list items.
6
7// If you change or add any fields in this file, update proto_visitors.h and
8// potentially proto_enum_conversions.{h, cc}.
9
10syntax = "proto2";
11
12option java_multiple_files = true;
13option java_package = "org.chromium.components.sync.protocol";
14
15option optimize_for = LITE_RUNTIME;
16
17package sync_pb;
18
19// Sync Reading list entry. This proto contains the fields synced for a reading
20// list entry. It must be kept synced with the reading_list.ReadingListLocal
21// protobuf.
22message ReadingListSpecifics {
23  optional string entry_id = 1;
24  optional string title = 2;
25  optional string url = 3;
26  optional int64 creation_time_us = 4;
27  optional int64 update_time_us = 5;
28  optional int64 first_read_time_us = 7;
29  optional int64 update_title_time_us = 8;
30
31  enum ReadingListEntryStatus {
32    UNREAD = 0;
33    READ = 1;
34    UNSEEN = 2;
35  }
36
37  // If the field is not present, it defaults to UNSEEN.
38  optional ReadingListEntryStatus status = 6;
39}
40