Chromium Code Reviews| 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 // Sync protocol for debug info clients can send to the sync server. | 5 // Sync protocol for debug info clients can send to the sync server. |
| 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"; | 14 import "get_updates_caller_info.proto"; |
| 15 | 15 |
| 16 // Per-type hint information. | |
| 17 message TypeHint { | |
| 18 // The data type this hint applied to. | |
| 19 optional int32 data_type_id = 1; | |
| 20 | |
| 21 // Whether or not a valid hint is provided. | |
| 22 optional bool has_valid_hint = 2; | |
| 23 } | |
| 24 | |
| 25 // Information about the source that triggered a sync. | |
| 26 message SourceInfo { | |
| 27 // An enum indicating the reason for the nudge. | |
| 28 optional GetUpdatesCallerInfo.GetUpdatesSource source = 1; | |
| 29 | |
| 30 // The per-type hint information associated with the nudge. | |
| 31 repeated TypeHint type_hint = 2; | |
| 32 } | |
| 33 | |
| 16 // The additional info here is from the StatusController. They get sent when | 34 // The additional info here is from the StatusController. They get sent when |
| 17 // the event SYNC_CYCLE_COMPLETED is sent. | 35 // the event SYNC_CYCLE_COMPLETED is sent. |
| 18 message SyncCycleCompletedEventInfo { | 36 message SyncCycleCompletedEventInfo { |
| 19 // optional bool syncer_stuck = 1; // Was always false, now obsolete. | 37 // optional bool syncer_stuck = 1; // Was always false, now obsolete. |
| 20 | 38 |
| 21 // The client has never set these values correctly. It set | 39 // The client has never set these values correctly. It set |
| 22 // num_blocking_conflicts to the total number of conflicts detected and set | 40 // num_blocking_conflicts to the total number of conflicts detected and set |
| 23 // num_non_blocking_conflicts to the number of blocking (aka. simple) | 41 // num_non_blocking_conflicts to the number of blocking (aka. simple) |
| 24 // conflicts. | 42 // conflicts. |
| 25 // | 43 // |
| 26 // These counters have been deprecated to avoid further confusion. The newer | 44 // These counters have been deprecated to avoid further confusion. The newer |
| 27 // counters provide more detail and are less buggy. | 45 // counters provide more detail and are less buggy. |
| 28 optional int32 num_blocking_conflicts = 2 [deprecated = true]; | 46 optional int32 num_blocking_conflicts = 2 [deprecated = true]; |
| 29 optional int32 num_non_blocking_conflicts = 3 [deprecated = true]; | 47 optional int32 num_non_blocking_conflicts = 3 [deprecated = true]; |
| 30 | 48 |
| 31 // These new conflict counters replace the ones above. | 49 // These new conflict counters replace the ones above. |
| 32 optional int32 num_encryption_conflicts = 4; | 50 optional int32 num_encryption_conflicts = 4; |
| 33 optional int32 num_hierarchy_conflicts = 5; | 51 optional int32 num_hierarchy_conflicts = 5; |
| 34 optional int32 num_simple_conflicts = 6; // No longer sent since M24. | 52 optional int32 num_simple_conflicts = 6; // No longer sent since M24. |
| 35 optional int32 num_server_conflicts = 7; | 53 optional int32 num_server_conflicts = 7; |
| 36 | 54 |
| 37 // Counts to track the effective usefulness of our GetUpdate requests. | 55 // Counts to track the effective usefulness of our GetUpdate requests. |
| 38 optional int32 num_updates_downloaded = 8; | 56 optional int32 num_updates_downloaded = 8; |
| 39 optional int32 num_reflected_updates_downloaded = 9; | 57 optional int32 num_reflected_updates_downloaded = 9; |
| 40 optional GetUpdatesCallerInfo caller_info = 10; | 58 optional GetUpdatesCallerInfo caller_info = 10; |
|
Nicolas Zea
2012/11/30 21:46:37
out of curiosity, should this field be deprecated
rlarocque
2012/11/30 21:53:09
I'll admit it's a bit redundant. This will tell u
| |
| 59 | |
| 60 // A list of all the sources that were merged into this session. | |
| 61 // | |
| 62 // Some scenarios, notably mode switches and canary jobs, can spuriously add | |
| 63 // back-to-back duplicate sources to this list. | |
| 64 repeated SourceInfo source_info = 11; | |
| 41 } | 65 } |
| 42 | 66 |
| 43 // Datatype specifics statistics gathered at association time. | 67 // Datatype specifics statistics gathered at association time. |
| 44 message DatatypeAssociationStats { | 68 message DatatypeAssociationStats { |
| 45 // The datatype that was associated. | 69 // The datatype that was associated. |
| 46 optional int32 data_type_id = 1; | 70 optional int32 data_type_id = 1; |
| 47 | 71 |
| 48 // The state of the world before association. | 72 // The state of the world before association. |
| 49 optional int32 num_local_items_before_association = 2; | 73 optional int32 num_local_items_before_association = 2; |
| 50 optional int32 num_sync_items_before_association = 3; | 74 optional int32 num_sync_items_before_association = 3; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 // Whether cryptographer is ready to encrypt and decrypt data. | 142 // Whether cryptographer is ready to encrypt and decrypt data. |
| 119 optional bool cryptographer_ready = 2; | 143 optional bool cryptographer_ready = 2; |
| 120 | 144 |
| 121 // Cryptographer has pending keys which indicates the correct passphrase | 145 // Cryptographer has pending keys which indicates the correct passphrase |
| 122 // has not been provided yet. | 146 // has not been provided yet. |
| 123 optional bool cryptographer_has_pending_keys = 3; | 147 optional bool cryptographer_has_pending_keys = 3; |
| 124 | 148 |
| 125 // Indicates client has dropped some events to save bandwidth. | 149 // Indicates client has dropped some events to save bandwidth. |
| 126 optional bool events_dropped = 4; | 150 optional bool events_dropped = 4; |
| 127 } | 151 } |
| OLD | NEW |