Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: sync/protocol/client_debug_info.proto

Issue 11416126: Track merged nudge sources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix type ID Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 string notification_hint = 2;
Raz Mathias 2012/11/27 21:52:18 To your question above, a bool would be better --
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 merged_source_info = 11;
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Whether cryptographer is ready to encrypt and decrypt data. 130 // Whether cryptographer is ready to encrypt and decrypt data.
117 optional bool cryptographer_ready = 2; 131 optional bool cryptographer_ready = 2;
118 132
119 // Cryptographer has pending keys which indicates the correct passphrase 133 // Cryptographer has pending keys which indicates the correct passphrase
120 // has not been provided yet. 134 // has not been provided yet.
121 optional bool cryptographer_has_pending_keys = 3; 135 optional bool cryptographer_has_pending_keys = 3;
122 136
123 // Indicates client has dropped some events to save bandwidth. 137 // Indicates client has dropped some events to save bandwidth.
124 optional bool events_dropped = 4; 138 optional bool events_dropped = 4;
125 } 139 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698