| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 // Common sync protocol for encrypted data. | 5 // Common sync protocol for encrypted data. |
| 6 | 6 |
| 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | |
| 8 // any fields in this file. | |
| 9 | |
| 10 syntax = "proto2"; | 7 syntax = "proto2"; |
| 11 | 8 |
| 12 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
| 13 option retain_unknown_fields = true; | 10 option retain_unknown_fields = true; |
| 14 | 11 |
| 15 package sync_pb; | 12 package sync_pb; |
| 16 | 13 |
| 17 // The additional info here is from SyncerStatus. They get sent when the event | 14 // The additional info here is from SyncerStatus. They get sent when the event |
| 18 // SYNC_CYCLE_COMPLETED is sent. | 15 // SYNC_CYCLE_COMPLETED is sent. |
| 19 message SyncCycleCompletedEventInfo { | 16 message SyncCycleCompletedEventInfo { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 // successful auth with the error set to none. | 28 // successful auth with the error set to none. |
| 32 UPDATED_TOKEN = 2; // Client received an updated token. | 29 UPDATED_TOKEN = 2; // Client received an updated token. |
| 33 PASSPHRASE_REQUIRED = 3; // Cryptographer needs passphrase. | 30 PASSPHRASE_REQUIRED = 3; // Cryptographer needs passphrase. |
| 34 PASSPHRASE_ACCEPTED = 4; // Passphrase was accepted by cryptographer. | 31 PASSPHRASE_ACCEPTED = 4; // Passphrase was accepted by cryptographer. |
| 35 INITIALIZATION_COMPLETE = 5; // Sync Initialization is complete. | 32 INITIALIZATION_COMPLETE = 5; // Sync Initialization is complete. |
| 36 | 33 |
| 37 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in | 34 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in |
| 38 // the absence of bugs. | 35 // the absence of bugs. |
| 39 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. | 36 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. |
| 40 | 37 |
| 38 ENCRYPTED_TYPES_CHANGED = 9; // Set of encrypted types has changed. |
| 41 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. | 39 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. |
| 42 ACTIONABLE_ERROR = 8; // Client received an actionable error. | 40 ACTIONABLE_ERROR = 8; // Client received an actionable error. |
| 43 } | 41 } |
| 44 optional EventType type = 1; | 42 optional EventType type = 1; |
| 45 optional SyncCycleCompletedEventInfo sync_cycle_completed_event_info = 2; | 43 optional SyncCycleCompletedEventInfo sync_cycle_completed_event_info = 2; |
| 46 } | 44 } |
| 47 | 45 |
| 48 message DebugInfo { | 46 message DebugInfo { |
| 49 repeated DebugEventInfo events = 1; | 47 repeated DebugEventInfo events = 1; |
| 50 | 48 |
| 51 // Whether cryptographer is ready to encrypt and decrypt data. | 49 // Whether cryptographer is ready to encrypt and decrypt data. |
| 52 optional bool cryptographer_ready = 2; | 50 optional bool cryptographer_ready = 2; |
| 53 | 51 |
| 54 // Cryptographer has pending keys which indicates the correct passphrase | 52 // Cryptographer has pending keys which indicates the correct passphrase |
| 55 // has not been provided yet. | 53 // has not been provided yet. |
| 56 optional bool cryptographer_has_pending_keys = 3; | 54 optional bool cryptographer_has_pending_keys = 3; |
| 57 | 55 |
| 58 // Indicates client has dropped some events to save bandwidth. | 56 // Indicates client has dropped some events to save bandwidth. |
| 59 optional bool events_dropped = 4; | 57 optional bool events_dropped = 4; |
| 60 } | 58 } |
| OLD | NEW |