OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 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 // Common sync protocol for encrypted data. | |
6 | |
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | |
8 // any fields in this file. | |
9 | |
10 syntax = "proto2"; | |
11 | |
12 option optimize_for = LITE_RUNTIME; | |
13 option retain_unknown_fields = true; | |
14 | |
15 package sync_pb; | |
16 | |
17 message SyncCycleCompletedEventInfo { | |
18 optional bool syncer_stuck = 1; | |
tim (not reviewing)
2011/10/14 01:23:21
perhaps add a comment at the message level here sa
lipalani1
2011/10/14 18:31:10
Done.
| |
19 optional int32 num_blocking_conflicts = 2; | |
20 optional int32 num_non_blocking_conflicts = 3; | |
21 } | |
22 | |
23 message DebugEventInfo { | |
24 // These events dont have any extra info associated with them. | |
tim (not reviewing)
2011/10/14 01:23:21
What's extra info? Might be more helpful to write
lipalani1
2011/10/14 18:31:10
Done.
| |
25 enum EventType { | |
26 AUTH_ERROR = 1; // Auth error | |
tim (not reviewing)
2011/10/14 01:23:21
add period. this comment isn't that useful either
lipalani1
2011/10/14 18:31:10
Done.
| |
27 UPDATED_TOKEN = 2; // Client received an updated token. | |
28 PASSPHRASE_REQUIRED = 3; // Cryptographer needs passphrase. | |
29 PASSPHRASE_ACCEPTED = 4; // Passphrase was accepted by cryptographer. | |
30 INITIALIZATION_COMPLETE = 5; // Sync Initialization is complete. | |
31 // This event should never be seen by the server in the absence of bugs. | |
tim (not reviewing)
2011/10/14 01:23:21
Which event does this pertain to?
lipalani1
2011/10/14 18:31:10
Done.
| |
32 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. | |
33 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. | |
34 ACTIONABLE_ERROR = 8; // Client received an actionable error. | |
35 } | |
36 optional EventType type = 1; | |
37 optional SyncCycleCompletedEventInfo sync_cycle_completed_event_info = 2; | |
38 } | |
39 | |
40 message DebugInfo { | |
41 repeated DebugEventInfo events = 1; | |
42 optional bool cryptographer_ready = 2; | |
43 optional bool cryptographer_has_pending_keys = 3; | |
tim (not reviewing)
2011/10/14 01:23:21
comments on these
lipalani1
2011/10/14 18:31:10
Done.
| |
44 optional bool events_dropped = 4; | |
45 } | |
OLD | NEW |