OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 // Common sync protocol for encrypted data. | 5 // Common sync protocol for encrypted data. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 option retain_unknown_fields = true; | 10 option retain_unknown_fields = true; |
11 | 11 |
12 package sync_pb; | 12 package sync_pb; |
13 | 13 |
14 // The additional info here is from SyncerStatus. They get sent when the event | 14 // The additional info here is from SyncerStatus. They get sent when the event |
15 // SYNC_CYCLE_COMPLETED is sent. | 15 // SYNC_CYCLE_COMPLETED is sent. |
16 message SyncCycleCompletedEventInfo { | 16 message SyncCycleCompletedEventInfo { |
17 optional bool syncer_stuck = 1; | 17 // optional bool syncer_stuck = 1; // Was always false, now obsolete. |
rlarocque
2012/01/10 00:07:43
This is my preferred mechanism for deprecating pro
tim (not reviewing)
2012/01/10 17:01:47
I really wonder if the spirit of a "stuck" signal
rlarocque
2012/01/10 21:39:32
Even if we revive the concept of "syncer_stuck" (I
tim (not reviewing)
2012/01/11 02:15:35
It's just that we have made no change that ensures
lipalani1
2012/01/12 23:55:49
I guess since this is a brand new feature there is
albertb
2012/01/13 15:47:03
[deprecated=true] is fine for the server. We'll ge
| |
18 optional int32 num_blocking_conflicts = 2; | 18 optional int32 num_blocking_conflicts = 2; |
19 optional int32 num_non_blocking_conflicts = 3; | 19 optional int32 num_non_blocking_conflicts = 3; |
20 } | 20 } |
21 | 21 |
22 message DebugEventInfo { | 22 message DebugEventInfo { |
23 // These events are sent by |SyncManager| class. Note: In the code they each | 23 // These events are sent by |SyncManager| class. Note: In the code they each |
24 // of these events have some additional info but we are not sending them to | 24 // of these events have some additional info but we are not sending them to |
25 // server. | 25 // server. |
26 enum EventType { | 26 enum EventType { |
27 AUTH_ERROR = 1; // Auth error. Note this gets generated even during | 27 AUTH_ERROR = 1; // Auth error. Note this gets generated even during |
(...skipping 20 matching lines...) Expand all Loading... | |
48 | 48 |
49 // Whether cryptographer is ready to encrypt and decrypt data. | 49 // Whether cryptographer is ready to encrypt and decrypt data. |
50 optional bool cryptographer_ready = 2; | 50 optional bool cryptographer_ready = 2; |
51 | 51 |
52 // Cryptographer has pending keys which indicates the correct passphrase | 52 // Cryptographer has pending keys which indicates the correct passphrase |
53 // has not been provided yet. | 53 // has not been provided yet. |
54 optional bool cryptographer_has_pending_keys = 3; | 54 optional bool cryptographer_has_pending_keys = 3; |
55 | 55 |
56 // Indicates client has dropped some events to save bandwidth. | 56 // Indicates client has dropped some events to save bandwidth. |
57 optional bool events_dropped = 4; | 57 optional bool events_dropped = 4; |
58 } | 58 } |
OLD | NEW |