diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-10 01:06:41 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-10 01:06:41 +0000 |
commit | 1bcf30ec84f19d40cc5c3f6051d0bb5860bfc74a (patch) | |
tree | a1c5b036a8aad3554aaca8947c3a249a8d5945e3 /sync/protocol/client_debug_info.proto | |
parent | 70180a806fe954878cdca606620da7a153a9efe7 (diff) | |
download | chromium_src-1bcf30ec84f19d40cc5c3f6051d0bb5860bfc74a.zip chromium_src-1bcf30ec84f19d40cc5c3f6051d0bb5860bfc74a.tar.gz chromium_src-1bcf30ec84f19d40cc5c3f6051d0bb5860bfc74a.tar.bz2 |
[Sync] Create new top-level sync/ directory
Move sync .proto files to sync/protocol. Update all references.
This begins the Great Sync Migration.
BUG=117585,43624
TEST=
Review URL: https://chromiumcodereview.appspot.com/9668028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/protocol/client_debug_info.proto')
-rw-r--r-- | sync/protocol/client_debug_info.proto | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/sync/protocol/client_debug_info.proto b/sync/protocol/client_debug_info.proto new file mode 100644 index 0000000..15216f8 --- /dev/null +++ b/sync/protocol/client_debug_info.proto @@ -0,0 +1,75 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// Common sync protocol for encrypted data. + +syntax = "proto2"; + +option optimize_for = LITE_RUNTIME; +option retain_unknown_fields = true; + +package sync_pb; + +// The additional info here is from SyncerStatus. They get sent when the event +// SYNC_CYCLE_COMPLETED is sent. +message SyncCycleCompletedEventInfo { + // optional bool syncer_stuck = 1; // Was always false, now obsolete. + + // The client has never set these values correctly. It set + // num_blocking_conflicts to the total number of conflicts detected and set + // num_non_blocking_conflicts to the number of blocking (aka. simple) + // conflicts. + // + // These counters have been deprecated to avoid further confusion. The newer + // counters provide more detail and are less buggy. + optional int32 num_blocking_conflicts = 2 [deprecated = true]; + optional int32 num_non_blocking_conflicts = 3 [deprecated = true]; + + // These new conflict counters replace the ones above. + optional int32 num_encryption_conflicts = 4; + optional int32 num_hierarchy_conflicts = 5; + optional int32 num_simple_conflicts = 6; + optional int32 num_server_conflicts = 7; +} + +message DebugEventInfo { + // These events are sent by |SyncManager| class. Note: In the code they each + // of these events have some additional info but we are not sending them to + // server. + enum EventType { + CONNECTION_STATUS_CHANGE = 1; // Connection status change. Note this + // gets generated even during a successful + // connection. + UPDATED_TOKEN = 2; // Client received an updated token. + PASSPHRASE_REQUIRED = 3; // Cryptographer needs passphrase. + PASSPHRASE_ACCEPTED = 4; // Passphrase was accepted by cryptographer. + INITIALIZATION_COMPLETE = 5; // Sync Initialization is complete. + + // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in + // the absence of bugs. + STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. + + ENCRYPTED_TYPES_CHANGED = 9; // Set of encrypted types has changed. + ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. + ACTIONABLE_ERROR = 8; // Client received an actionable error. + BOOTSTRAP_TOKEN_UPDATED = 9; // A new cryptographer bootstrap token was + // generated. + } + optional EventType type = 1; + optional SyncCycleCompletedEventInfo sync_cycle_completed_event_info = 2; +} + +message DebugInfo { + repeated DebugEventInfo events = 1; + + // Whether cryptographer is ready to encrypt and decrypt data. + optional bool cryptographer_ready = 2; + + // Cryptographer has pending keys which indicates the correct passphrase + // has not been provided yet. + optional bool cryptographer_has_pending_keys = 3; + + // Indicates client has dropped some events to save bandwidth. + optional bool events_dropped = 4; +} |