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 // Information about hints sent with nudges. | |
17 message TypeHint { | |
18 optional int32 data_type_id = 1; | |
19 optional bool has_valid_hint = 2; | |
20 } | |
21 | |
22 // Information about the source that triggered a sync. | |
23 message SourceInfo { | |
24 optional GetUpdatesCallerInfo.GetUpdatesSource source = 1; | |
25 repeated TypeHint type_hint = 2; | |
26 } | |
27 | |
16 // The additional info here is from the StatusController. They get sent when | 28 // The additional info here is from the StatusController. They get sent when |
17 // the event SYNC_CYCLE_COMPLETED is sent. | 29 // the event SYNC_CYCLE_COMPLETED is sent. |
18 message SyncCycleCompletedEventInfo { | 30 message SyncCycleCompletedEventInfo { |
19 // optional bool syncer_stuck = 1; // Was always false, now obsolete. | 31 // optional bool syncer_stuck = 1; // Was always false, now obsolete. |
20 | 32 |
21 // The client has never set these values correctly. It set | 33 // The client has never set these values correctly. It set |
22 // num_blocking_conflicts to the total number of conflicts detected and set | 34 // num_blocking_conflicts to the total number of conflicts detected and set |
23 // num_non_blocking_conflicts to the number of blocking (aka. simple) | 35 // num_non_blocking_conflicts to the number of blocking (aka. simple) |
24 // conflicts. | 36 // conflicts. |
25 // | 37 // |
26 // These counters have been deprecated to avoid further confusion. The newer | 38 // These counters have been deprecated to avoid further confusion. The newer |
27 // counters provide more detail and are less buggy. | 39 // counters provide more detail and are less buggy. |
28 optional int32 num_blocking_conflicts = 2 [deprecated = true]; | 40 optional int32 num_blocking_conflicts = 2 [deprecated = true]; |
29 optional int32 num_non_blocking_conflicts = 3 [deprecated = true]; | 41 optional int32 num_non_blocking_conflicts = 3 [deprecated = true]; |
30 | 42 |
31 // These new conflict counters replace the ones above. | 43 // These new conflict counters replace the ones above. |
32 optional int32 num_encryption_conflicts = 4; | 44 optional int32 num_encryption_conflicts = 4; |
33 optional int32 num_hierarchy_conflicts = 5; | 45 optional int32 num_hierarchy_conflicts = 5; |
34 optional int32 num_simple_conflicts = 6; // No longer sent since M24. | 46 optional int32 num_simple_conflicts = 6; // No longer sent since M24. |
35 optional int32 num_server_conflicts = 7; | 47 optional int32 num_server_conflicts = 7; |
36 | 48 |
37 // Counts to track the effective usefulness of our GetUpdate requests. | 49 // Counts to track the effective usefulness of our GetUpdate requests. |
38 optional int32 num_updates_downloaded = 8; | 50 optional int32 num_updates_downloaded = 8; |
39 optional int32 num_reflected_updates_downloaded = 9; | 51 optional int32 num_reflected_updates_downloaded = 9; |
40 optional GetUpdatesCallerInfo caller_info = 10; | 52 optional GetUpdatesCallerInfo caller_info = 10; |
53 | |
54 repeated SourceInfo source_info = 11; | |
tim (not reviewing)
2012/11/29 19:28:05
sources_list may be a better name (to match debug_
rlarocque
2012/11/29 23:42:12
I thought of that, but then there's the problem th
| |
41 } | 55 } |
42 | 56 |
43 // Datatype specifics statistics gathered at association time. | 57 // Datatype specifics statistics gathered at association time. |
44 message DatatypeAssociationStats { | 58 message DatatypeAssociationStats { |
45 // The datatype that was associated. | 59 // The datatype that was associated. |
46 optional int32 data_type_id = 1; | 60 optional int32 data_type_id = 1; |
47 | 61 |
48 // The state of the world before association. | 62 // The state of the world before association. |
49 optional int32 num_local_items_before_association = 2; | 63 optional int32 num_local_items_before_association = 2; |
50 optional int32 num_sync_items_before_association = 3; | 64 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. | 132 // Whether cryptographer is ready to encrypt and decrypt data. |
119 optional bool cryptographer_ready = 2; | 133 optional bool cryptographer_ready = 2; |
120 | 134 |
121 // Cryptographer has pending keys which indicates the correct passphrase | 135 // Cryptographer has pending keys which indicates the correct passphrase |
122 // has not been provided yet. | 136 // has not been provided yet. |
123 optional bool cryptographer_has_pending_keys = 3; | 137 optional bool cryptographer_has_pending_keys = 3; |
124 | 138 |
125 // Indicates client has dropped some events to save bandwidth. | 139 // Indicates client has dropped some events to save bandwidth. |
126 optional bool events_dropped = 4; | 140 optional bool events_dropped = 4; |
127 } | 141 } |
OLD | NEW |