Chromium Code Reviews| 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 reading_list; | 11 package reading_list; |
| 12 | 12 |
| 13 // Local Reading list entry. This proto contains the fields stored locally for | 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 | 14 // a reading list entry. It must be kept synced with the |
| 15 // sync_pb.ReadingListSpecifics protobuf. | 15 // sync_pb.ReadingListSpecifics protobuf. |
| 16 message ReadingListLocal { | 16 message ReadingListLocal { |
| 17 optional string entry_id = 1; | 17 optional string entry_id = 1; |
| 18 | |
| 19 optional string title = 2; | 18 optional string title = 2; |
| 20 | |
| 21 optional string url = 3; | 19 optional string url = 3; |
| 22 | |
| 23 optional int64 creation_time_us = 4; | 20 optional int64 creation_time_us = 4; |
| 24 | |
| 25 optional int64 update_time_us = 5; | 21 optional int64 update_time_us = 5; |
| 22 optional int64 first_read_time_us = 11; | |
|
gambard
2016/11/28 17:33:51
It makes sense to regroup the fields by usage (i.e
Olivier
2016/11/28 17:59:15
It is like that in other specifics, so I guess it
| |
| 26 | 23 |
| 27 enum ReadingListEntryStatus { | 24 enum ReadingListEntryStatus { |
| 28 UNREAD = 0; | 25 UNREAD = 0; |
| 29 READ = 1; | 26 READ = 1; |
| 30 } | 27 } |
| 31 | 28 |
| 32 optional ReadingListEntryStatus status = 6; | 29 optional ReadingListEntryStatus status = 6; |
| 33 | 30 |
| 34 enum DistillationState { | 31 enum DistillationState { |
| 35 WAITING = 0; | 32 WAITING = 0; |
| 36 PROCESSING = 1; | 33 PROCESSING = 1; |
| 37 PROCESSED = 2; | 34 PROCESSED = 2; |
| 38 WILL_RETRY = 3; | 35 WILL_RETRY = 3; |
| 39 ERROR = 4; | 36 ERROR = 4; |
| 40 } | 37 } |
| 41 optional DistillationState distillation_state = 7; | 38 optional DistillationState distillation_state = 7; |
| 42 optional string distilled_path = 8; | 39 optional string distilled_path = 8; |
| 43 optional int64 failed_download_counter = 9; | 40 optional int64 failed_download_counter = 9; |
| 44 optional string backoff = 10; | 41 optional string backoff = 10; |
| 45 } | 42 } |
| OLD | NEW |