| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 import "get_updates_caller_info.proto"; |
| 15 |
| 14 // The additional info here is from SyncerStatus. They get sent when the event | 16 // The additional info here is from SyncerStatus. They get sent when the event |
| 15 // SYNC_CYCLE_COMPLETED is sent. | 17 // SYNC_CYCLE_COMPLETED is sent. |
| 16 message SyncCycleCompletedEventInfo { | 18 message SyncCycleCompletedEventInfo { |
| 17 // optional bool syncer_stuck = 1; // Was always false, now obsolete. | 19 // optional bool syncer_stuck = 1; // Was always false, now obsolete. |
| 18 | 20 |
| 19 // The client has never set these values correctly. It set | 21 // The client has never set these values correctly. It set |
| 20 // num_blocking_conflicts to the total number of conflicts detected and set | 22 // num_blocking_conflicts to the total number of conflicts detected and set |
| 21 // num_non_blocking_conflicts to the number of blocking (aka. simple) | 23 // num_non_blocking_conflicts to the number of blocking (aka. simple) |
| 22 // conflicts. | 24 // conflicts. |
| 23 // | 25 // |
| 24 // These counters have been deprecated to avoid further confusion. The newer | 26 // These counters have been deprecated to avoid further confusion. The newer |
| 25 // counters provide more detail and are less buggy. | 27 // counters provide more detail and are less buggy. |
| 26 optional int32 num_blocking_conflicts = 2 [deprecated = true]; | 28 optional int32 num_blocking_conflicts = 2 [deprecated = true]; |
| 27 optional int32 num_non_blocking_conflicts = 3 [deprecated = true]; | 29 optional int32 num_non_blocking_conflicts = 3 [deprecated = true]; |
| 28 | 30 |
| 29 // These new conflict counters replace the ones above. | 31 // These new conflict counters replace the ones above. |
| 30 optional int32 num_encryption_conflicts = 4; | 32 optional int32 num_encryption_conflicts = 4; |
| 31 optional int32 num_hierarchy_conflicts = 5; | 33 optional int32 num_hierarchy_conflicts = 5; |
| 32 optional int32 num_simple_conflicts = 6; | 34 optional int32 num_simple_conflicts = 6; |
| 33 optional int32 num_server_conflicts = 7; | 35 optional int32 num_server_conflicts = 7; |
| 36 |
| 37 // Counts to track the effective usefulness of our GetUpdate requests. |
| 38 optional int32 num_updates_downloaded = 8; |
| 39 optional int32 num_echo_updates_downloaded = 9; |
| 34 } | 40 } |
| 35 | 41 |
| 36 message DebugEventInfo { | 42 message DebugEventInfo { |
| 37 // These events are sent by |SyncManager| class. Note: In the code they each | 43 // These events are sent by |SyncManager| class. Note: In the code they each |
| 38 // of these events have some additional info but we are not sending them to | 44 // of these events have some additional info but we are not sending them to |
| 39 // server. | 45 // server. |
| 40 enum EventType { | 46 enum EventType { |
| 41 CONNECTION_STATUS_CHANGE = 1; // Connection status change. Note this | 47 CONNECTION_STATUS_CHANGE = 1; // Connection status change. Note this |
| 42 // gets generated even during a successful | 48 // gets generated even during a successful |
| 43 // connection. | 49 // connection. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 66 // Whether cryptographer is ready to encrypt and decrypt data. | 72 // Whether cryptographer is ready to encrypt and decrypt data. |
| 67 optional bool cryptographer_ready = 2; | 73 optional bool cryptographer_ready = 2; |
| 68 | 74 |
| 69 // Cryptographer has pending keys which indicates the correct passphrase | 75 // Cryptographer has pending keys which indicates the correct passphrase |
| 70 // has not been provided yet. | 76 // has not been provided yet. |
| 71 optional bool cryptographer_has_pending_keys = 3; | 77 optional bool cryptographer_has_pending_keys = 3; |
| 72 | 78 |
| 73 // Indicates client has dropped some events to save bandwidth. | 79 // Indicates client has dropped some events to save bandwidth. |
| 74 optional bool events_dropped = 4; | 80 optional bool events_dropped = 4; |
| 75 } | 81 } |
| OLD | NEW |