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

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

Issue 9668028: [Sync] Create new top-level sync/ directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 9 months 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
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // Common sync protocol for encrypted data.
6
7 syntax = "proto2";
8
9 option optimize_for = LITE_RUNTIME;
10 option retain_unknown_fields = true;
11
12 package sync_pb;
13
14 // The additional info here is from SyncerStatus. They get sent when the event
15 // SYNC_CYCLE_COMPLETED is sent.
16 message SyncCycleCompletedEventInfo {
17 // optional bool syncer_stuck = 1; // Was always false, now obsolete.
18
19 // The client has never set these values correctly. It set
20 // num_blocking_conflicts to the total number of conflicts detected and set
21 // num_non_blocking_conflicts to the number of blocking (aka. simple)
22 // conflicts.
23 //
24 // These counters have been deprecated to avoid further confusion. The newer
25 // counters provide more detail and are less buggy.
26 optional int32 num_blocking_conflicts = 2 [deprecated = true];
27 optional int32 num_non_blocking_conflicts = 3 [deprecated = true];
28
29 // These new conflict counters replace the ones above.
30 optional int32 num_encryption_conflicts = 4;
31 optional int32 num_hierarchy_conflicts = 5;
32 optional int32 num_simple_conflicts = 6;
33 optional int32 num_server_conflicts = 7;
34 }
35
36 message DebugEventInfo {
37 // 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
39 // server.
40 enum EventType {
41 CONNECTION_STATUS_CHANGE = 1; // Connection status change. Note this
42 // gets generated even during a successful
43 // connection.
44 UPDATED_TOKEN = 2; // Client received an updated token.
45 PASSPHRASE_REQUIRED = 3; // Cryptographer needs passphrase.
46 PASSPHRASE_ACCEPTED = 4; // Passphrase was accepted by cryptographer.
47 INITIALIZATION_COMPLETE = 5; // Sync Initialization is complete.
48
49 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in
50 // the absence of bugs.
51 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently.
52
53 ENCRYPTED_TYPES_CHANGED = 9; // Set of encrypted types has changed.
54 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data.
55 ACTIONABLE_ERROR = 8; // Client received an actionable error.
56 BOOTSTRAP_TOKEN_UPDATED = 9; // A new cryptographer bootstrap token was
57 // generated.
58 }
59 optional EventType type = 1;
60 optional SyncCycleCompletedEventInfo sync_cycle_completed_event_info = 2;
61 }
62
63 message DebugInfo {
64 repeated DebugEventInfo events = 1;
65
66 // Whether cryptographer is ready to encrypt and decrypt data.
67 optional bool cryptographer_ready = 2;
68
69 // Cryptographer has pending keys which indicates the correct passphrase
70 // has not been provided yet.
71 optional bool cryptographer_has_pending_keys = 3;
72
73 // Indicates client has dropped some events to save bandwidth.
74 optional bool events_dropped = 4;
75 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/client_commands.proto ('k') | chrome/browser/sync/protocol/encryption.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698