OLD | NEW |
| (Empty) |
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 syntax = "proto2"; | |
8 | |
9 option optimize_for = LITE_RUNTIME; | |
10 | |
11 package reading_list; | |
12 | |
13 // Local Reading list entry. This proto contains the fields stored locally for | |
14 // a reading list entry. It must be kept synced with the | |
15 // sync_pb.ReadingListSpecifics protobuf. | |
16 message ReadingListLocal { | |
17 optional string entry_id = 1; | |
18 optional string title = 2; | |
19 optional string url = 3; | |
20 optional int64 creation_time_us = 4; | |
21 optional int64 update_time_us = 5; | |
22 optional int64 first_read_time_us = 11; | |
23 optional int64 update_title_time_us = 12; | |
24 | |
25 enum ReadingListEntryStatus { | |
26 UNREAD = 0; | |
27 READ = 1; | |
28 UNSEEN = 2; | |
29 } | |
30 // If the field is not present, it defaults to UNSEEN. | |
31 optional ReadingListEntryStatus status = 6; | |
32 | |
33 enum DistillationState { | |
34 WAITING = 0; | |
35 PROCESSING = 1; | |
36 PROCESSED = 2; | |
37 WILL_RETRY = 3; | |
38 ERROR = 4; | |
39 } | |
40 optional DistillationState distillation_state = 7; | |
41 optional string distilled_path = 8; | |
42 optional string distilled_url = 13; | |
43 optional int64 failed_download_counter = 9; | |
44 optional string backoff = 10; | |
45 optional int64 distillation_time_us = 14; | |
46 optional int64 distillation_size = 15; | |
47 } | |
OLD | NEW |