OLD | NEW |
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 // Sync protocol for communication between sync client and server. | 5 // Sync protocol for communication between sync client and server. |
6 | 6 |
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
8 // any fields in this file. | 8 // any fields in this file. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 CLEAR_PENDING = 7; // A clear of the user data is pending (e.g. | 91 CLEAR_PENDING = 7; // A clear of the user data is pending (e.g. |
92 // initiated by privacy request). Client should | 92 // initiated by privacy request). Client should |
93 // come back later. | 93 // come back later. |
94 TRANSIENT_ERROR = 8; // A transient error occured (eg. backend | 94 TRANSIENT_ERROR = 8; // A transient error occured (eg. backend |
95 // timeout). Client should try again later. | 95 // timeout). Client should try again later. |
96 MIGRATION_DONE = 9; // Migration has finished for one or more data | 96 MIGRATION_DONE = 9; // Migration has finished for one or more data |
97 // types. Client should clear the cache for | 97 // types. Client should clear the cache for |
98 // these data types only and then re-sync with | 98 // these data types only and then re-sync with |
99 // a server. | 99 // a server. |
100 DISABLED_BY_ADMIN = 10; // An administrator disabled sync for this domain. | 100 DISABLED_BY_ADMIN = 10; // An administrator disabled sync for this domain. |
| 101 USER_ROLLBACK = 11; // Client told to stop syncing and roll back. |
101 UNKNOWN = 100; // Unknown value. This should never be explicitly | 102 UNKNOWN = 100; // Unknown value. This should never be explicitly |
102 // used; it is the default value when an | 103 // used; it is the default value when an |
103 // out-of-date client parses a value it doesn't | 104 // out-of-date client parses a value it doesn't |
104 // recognize. | 105 // recognize. |
105 } | 106 } |
106 | 107 |
107 enum Action { | 108 enum Action { |
108 UPGRADE_CLIENT = 0; // Upgrade the client to latest version. | 109 UPGRADE_CLIENT = 0; // Upgrade the client to latest version. |
109 CLEAR_USER_DATA_AND_RESYNC = 1; // Clear user data from dashboard and | 110 CLEAR_USER_DATA_AND_RESYNC = 1; // Clear user data from dashboard and |
110 // setup sync again. | 111 // setup sync again. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // confused with FIRST_UPDATE. | 152 // confused with FIRST_UPDATE. |
152 RECONFIGURATION = 10; // The client is in configuration mode because the | 153 RECONFIGURATION = 10; // The client is in configuration mode because the |
153 // user opted to sync a different set of datatypes. | 154 // user opted to sync a different set of datatypes. |
154 GU_TRIGGER = 12; // The client is in 'normal' mode. It may have several | 155 GU_TRIGGER = 12; // The client is in 'normal' mode. It may have several |
155 // reasons for requesting an update. See the per-type | 156 // reasons for requesting an update. See the per-type |
156 // GetUpdateTriggers message for more details. | 157 // GetUpdateTriggers message for more details. |
157 RETRY = 13; // A retry GU to pick up updates missed by last GU due to | 158 RETRY = 13; // A retry GU to pick up updates missed by last GU due to |
158 // replication delay, missing hints, etc. | 159 // replication delay, missing hints, etc. |
159 } | 160 } |
160 } | 161 } |
OLD | NEW |