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

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

Issue 10824410: [Sync] Refactor passphrase state handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 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
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 // Common sync protocol for encrypted data. 5 // Common sync protocol for encrypted data.
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;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in 56 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in
57 // the absence of bugs. 57 // the absence of bugs.
58 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. 58 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently.
59 59
60 ENCRYPTED_TYPES_CHANGED = 9; // Set of encrypted types has changed. 60 ENCRYPTED_TYPES_CHANGED = 9; // Set of encrypted types has changed.
61 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. 61 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data.
62 ACTIONABLE_ERROR = 8; // Client received an actionable error. 62 ACTIONABLE_ERROR = 8; // Client received an actionable error.
63 BOOTSTRAP_TOKEN_UPDATED = 9; // A new cryptographer bootstrap token was 63 BOOTSTRAP_TOKEN_UPDATED = 9; // A new cryptographer bootstrap token was
64 // generated. 64 // generated.
65 PASSPHRASE_STATE_CHANGED = 10; // The encryption passphrase state changed.
65 } 66 }
66 // In a given |DebugEventInfo| only one of the following would be set. 67 // In a given |DebugEventInfo| only one of the following would be set.
67 optional EventType type = 1; 68 optional EventType type = 1;
68 69
69 optional SyncCycleCompletedEventInfo sync_cycle_completed_event_info = 2; 70 optional SyncCycleCompletedEventInfo sync_cycle_completed_event_info = 2;
70 71
71 // Datatype that caused the nudge. 72 // Datatype that caused the nudge.
72 optional int32 nudging_datatype = 3; 73 optional int32 nudging_datatype = 3;
73 74
74 // Datatypes that were notified from server. 75 // Datatypes that were notified from server.
75 repeated int32 datatypes_notified_from_server = 4; 76 repeated int32 datatypes_notified_from_server = 4;
76 } 77 }
77 78
78 message DebugInfo { 79 message DebugInfo {
79 repeated DebugEventInfo events = 1; 80 repeated DebugEventInfo events = 1;
80 81
81 // Whether cryptographer is ready to encrypt and decrypt data. 82 // Whether cryptographer is ready to encrypt and decrypt data.
82 optional bool cryptographer_ready = 2; 83 optional bool cryptographer_ready = 2;
83 84
84 // Cryptographer has pending keys which indicates the correct passphrase 85 // Cryptographer has pending keys which indicates the correct passphrase
85 // has not been provided yet. 86 // has not been provided yet.
86 optional bool cryptographer_has_pending_keys = 3; 87 optional bool cryptographer_has_pending_keys = 3;
87 88
88 // Indicates client has dropped some events to save bandwidth. 89 // Indicates client has dropped some events to save bandwidth.
89 optional bool events_dropped = 4; 90 optional bool events_dropped = 4;
90 } 91 }
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/test/fake_sync_encryption_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698