| OLD | NEW |
| 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 // Sync protocol datatype extension for the reading list items. | 5 // Sync protocol datatype extension for the reading list items. |
| 6 | 6 |
| 7 syntax = "proto2"; | 7 syntax = "proto2"; |
| 8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
| 10 | 10 |
| 11 package sync_pb; | 11 package sync_pb; |
| 12 | 12 |
| 13 // Sync Reading list entry. This proto contains the fields synced for a reading | 13 // Properties of Reading list items. |
| 14 // list entry. It must be kept synced with the reading_list.ReadingListLocal | |
| 15 // protobuf. | |
| 16 message ReadingListSpecifics { | 14 message ReadingListSpecifics { |
| 17 optional string entry_id = 1; | 15 optional string entry_id = 1; |
| 18 | 16 |
| 19 optional string title = 2; | 17 optional string title = 2; |
| 20 | 18 |
| 21 optional string url = 3; | 19 optional string url = 3; |
| 22 | 20 |
| 23 optional int64 creation_time_us = 4; | 21 optional int64 creation_time_us = 4; |
| 24 | 22 |
| 25 optional int64 update_time_us = 5; | 23 optional int64 update_time_us = 5; |
| 26 | 24 |
| 27 enum ReadingListEntryStatus { | 25 enum ReadingListEntryStatus { |
| 28 UNREAD = 0; | 26 UNREAD = 0; |
| 29 READ = 1; | 27 READ = 1; |
| 30 } | 28 } |
| 31 | 29 |
| 32 optional ReadingListEntryStatus status = 6; | 30 optional ReadingListEntryStatus status = 6; |
| 33 } | 31 } |
| OLD | NEW |