| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   80     AUTH_INVALID       = 6;   // Auth token or cookie is otherwise invalid. |   80     AUTH_INVALID       = 6;   // Auth token or cookie is otherwise invalid. | 
|   81     CLEAR_PENDING      = 7;   // A clear of the user data is pending (e.g. |   81     CLEAR_PENDING      = 7;   // A clear of the user data is pending (e.g. | 
|   82                               // initiated by privacy request).  Client should |   82                               // initiated by privacy request).  Client should | 
|   83                               // come back later. |   83                               // come back later. | 
|   84     TRANSIENT_ERROR    = 8;   // A transient error occured (eg. backend |   84     TRANSIENT_ERROR    = 8;   // A transient error occured (eg. backend | 
|   85                               // timeout). Client should try again later. |   85                               // timeout). Client should try again later. | 
|   86     MIGRATION_DONE     = 9;   // Migration has finished for one or more data |   86     MIGRATION_DONE     = 9;   // Migration has finished for one or more data | 
|   87                               // types.  Client should clear the cache for |   87                               // types.  Client should clear the cache for | 
|   88                               // these data types only and then re-sync with |   88                               // these data types only and then re-sync with | 
|   89                               // a server. |   89                               // a server. | 
 |   90     DISABLED_BY_ADMIN = 10;   // An administrator disabled sync for this domain. | 
|   90     UNKNOWN            = 100; // Unknown value. This should never be explicitly |   91     UNKNOWN            = 100; // Unknown value. This should never be explicitly | 
|   91                               // used; it is the default value when an |   92                               // used; it is the default value when an | 
|   92                               // out-of-date client parses a value it doesn't |   93                               // out-of-date client parses a value it doesn't | 
|   93                               // recognize. |   94                               // recognize. | 
|   94   } |   95   } | 
|   95  |   96  | 
|   96   enum Action { |   97   enum Action { | 
|   97     UPGRADE_CLIENT              = 0; // Upgrade the client to latest version. |   98     UPGRADE_CLIENT              = 0; // Upgrade the client to latest version. | 
|   98     CLEAR_USER_DATA_AND_RESYNC  = 1; // Clear user data from dashboard and |   99     CLEAR_USER_DATA_AND_RESYNC  = 1; // Clear user data from dashboard and | 
|   99                                      // setup sync again. |  100                                      // setup sync again. | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  138     NEW_CLIENT = 9;        // The client is in configuration mode because the |  139     NEW_CLIENT = 9;        // The client is in configuration mode because the | 
|  139                            // user enabled sync for the first time.  Not to be |  140                            // user enabled sync for the first time.  Not to be | 
|  140                            // confused with FIRST_UPDATE. |  141                            // confused with FIRST_UPDATE. | 
|  141     RECONFIGURATION = 10;  // The client is in configuration mode because the |  142     RECONFIGURATION = 10;  // The client is in configuration mode because the | 
|  142                            // user opted to sync a different set of datatypes. |  143                            // user opted to sync a different set of datatypes. | 
|  143     GU_TRIGGER = 12; // The client is in 'normal' mode.  It may have several |  144     GU_TRIGGER = 12; // The client is in 'normal' mode.  It may have several | 
|  144                      // reasons for requesting an update.  See the per-type |  145                      // reasons for requesting an update.  See the per-type | 
|  145                      // GetUpdateTriggers message for more details. |  146                      // GetUpdateTriggers message for more details. | 
|  146   } |  147   } | 
|  147 } |  148 } | 
| OLD | NEW |