Chromium Code Reviews| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 106 |
| 107 enum Action { | 107 enum Action { |
| 108 UPGRADE_CLIENT = 0; // Upgrade the client to latest version. | 108 UPGRADE_CLIENT = 0; // Upgrade the client to latest version. |
| 109 CLEAR_USER_DATA_AND_RESYNC = 1; // Clear user data from dashboard and | 109 CLEAR_USER_DATA_AND_RESYNC = 1; // Clear user data from dashboard and |
| 110 // setup sync again. | 110 // setup sync again. |
| 111 ENABLE_SYNC_ON_ACCOUNT = 2; // The administrator needs to enable sync | 111 ENABLE_SYNC_ON_ACCOUNT = 2; // The administrator needs to enable sync |
| 112 // on the account. | 112 // on the account. |
| 113 STOP_AND_RESTART_SYNC = 3; // Stop sync and set up sync again. | 113 STOP_AND_RESTART_SYNC = 3; // Stop sync and set up sync again. |
| 114 DISABLE_SYNC_ON_CLIENT = 4; // Wipe the client of all sync data and | 114 DISABLE_SYNC_ON_CLIENT = 4; // Wipe the client of all sync data and |
| 115 // stop syncing. | 115 // stop syncing. |
| 116 UNKNOWN_ACTION = 5; // This is the default. | 116 DISABLE_SYNC_AND_ROLLBACK = 5; // Wipe out sync data, stop syncing and |
| 117 // roll back local data to pre-sync state. | |
| 118 UNKNOWN_ACTION = 6; // This is the default. | |
|
Nicolas Zea
2014/04/15 23:08:31
it's a bit concerning that we're modifying the val
maniscalco
2014/04/15 23:16:26
I was wondering the same thing. Is Action ever se
haitaol1
2014/04/15 23:44:03
I think it's by design that UNKNOWN_ACTION is put
maniscalco
2014/04/16 00:09:20
To make things "obviously safe" I suggest leaving
| |
| 117 } | 119 } |
| 118 | 120 |
| 119 enum DeviceType { | 121 enum DeviceType { |
| 120 TYPE_WIN = 1; | 122 TYPE_WIN = 1; |
| 121 TYPE_MAC = 2; | 123 TYPE_MAC = 2; |
| 122 TYPE_LINUX = 3; | 124 TYPE_LINUX = 3; |
| 123 TYPE_CROS = 4; | 125 TYPE_CROS = 4; |
| 124 TYPE_OTHER = 5; | 126 TYPE_OTHER = 5; |
| 125 TYPE_PHONE = 6; | 127 TYPE_PHONE = 6; |
| 126 TYPE_TABLET = 7; | 128 TYPE_TABLET = 7; |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 151 // confused with FIRST_UPDATE. | 153 // confused with FIRST_UPDATE. |
| 152 RECONFIGURATION = 10; // The client is in configuration mode because the | 154 RECONFIGURATION = 10; // The client is in configuration mode because the |
| 153 // user opted to sync a different set of datatypes. | 155 // user opted to sync a different set of datatypes. |
| 154 GU_TRIGGER = 12; // The client is in 'normal' mode. It may have several | 156 GU_TRIGGER = 12; // The client is in 'normal' mode. It may have several |
| 155 // reasons for requesting an update. See the per-type | 157 // reasons for requesting an update. See the per-type |
| 156 // GetUpdateTriggers message for more details. | 158 // GetUpdateTriggers message for more details. |
| 157 RETRY = 13; // A retry GU to pick up updates missed by last GU due to | 159 RETRY = 13; // A retry GU to pick up updates missed by last GU due to |
| 158 // replication delay, missing hints, etc. | 160 // replication delay, missing hints, etc. |
| 159 } | 161 } |
| 160 } | 162 } |
| OLD | NEW |