OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | |
8 // any fields in this file. | |
9 | |
10 syntax = "proto2"; | |
11 | |
12 option optimize_for = LITE_RUNTIME; | |
13 option retain_unknown_fields = true; | |
14 | |
15 package sync_pb; | |
16 | |
17 // The additional info here is from SyncerStatus. They get sent when the event | |
18 // SYNC_CYCLE_COMPLETED is sent. | |
19 message SyncCycleCompletedEventInfo { | |
20 optional bool syncer_stuck = 1; | |
21 optional int32 num_blocking_conflicts = 2; | |
22 optional int32 num_non_blocking_conflicts = 3; | |
23 } | |
24 | |
25 message DebugEventInfo { | |
26 // These events are sent by |SyncManager| class. Note: In the code they each | |
27 // of these events have some additional info but we are not sending them to | |
28 // server. | |
29 enum EventType { | |
30 AUTH_ERROR = 1; // Auth error. Note this gets generated even during | |
31 // successful auth with the error set to none. | |
32 UPDATED_TOKEN = 2; // Client received an updated token. | |
33 PASSPHRASE_REQUIRED = 3; // Cryptographer needs passphrase. | |
34 PASSPHRASE_ACCEPTED = 4; // Passphrase was accepted by cryptographer. | |
35 INITIALIZATION_COMPLETE = 5; // Sync Initialization is complete. | |
36 | |
37 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in | |
38 // the absence of bugs. | |
39 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. | |
40 | |
41 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. | |
42 ACTIONABLE_ERROR = 8; // Client received an actionable error. | |
43 } | |
44 optional EventType type = 1; | |
45 optional SyncCycleCompletedEventInfo sync_cycle_completed_event_info = 2; | |
46 } | |
47 | |
48 message DebugInfo { | |
49 repeated DebugEventInfo events = 1; | |
50 | |
51 // Whether cryptographer is ready to encrypt and decrypt data. | |
52 optional bool cryptographer_ready = 2; | |
53 | |
54 // Cryptographer has pending keys which indicates the correct passphrase | |
55 // has not been provided yet. | |
56 optional bool cryptographer_has_pending_keys = 3; | |
57 | |
58 // Indicates client has dropped some events to save bandwidth. | |
59 optional bool events_dropped = 4; | |
60 } | |
OLD | NEW |