| 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. | 
|  100     ENABLE_SYNC_ON_ACCOUNT      = 2; // The administrator needs to enable sync |  101     ENABLE_SYNC_ON_ACCOUNT      = 2; // The administrator needs to enable sync | 
|  101                                      // on the account. |  102                                      // on the account. | 
|  102     STOP_AND_RESTART_SYNC       = 3; // Stop sync and set up sync again. |  103     STOP_AND_RESTART_SYNC       = 3; // Stop sync and set up sync again. | 
|  103     DISABLE_SYNC_ON_CLIENT      = 4; // Wipe the client of all sync data and |  104     DISABLE_SYNC_ON_CLIENT      = 4; // Wipe the client of all sync data and | 
|  104                                      // stop syncing. |  105                                      // stop syncing. | 
|  105     UNKNOWN_ACTION              = 5; // This is the default. |  106     UNKNOWN_ACTION              = 5; // This is the default. | 
|  106   } |  107   } | 
|  107  |  108  | 
|  108   enum DeviceType { |  109   enum DeviceType { | 
|  109     TYPE_WIN = 1; |  110     TYPE_WIN = 1; | 
|  110     TYPE_MAC = 2; |  111     TYPE_MAC = 2; | 
|  111     TYPE_LINUX = 3; |  112     TYPE_LINUX = 3; | 
|  112     TYPE_CROS = 4; |  113     TYPE_CROS = 4; | 
|  113     TYPE_OTHER = 5; |  114     TYPE_OTHER = 5; | 
|  114     TYPE_PHONE = 6; |  115     TYPE_PHONE = 6; | 
|  115     TYPE_TABLET = 7; |  116     TYPE_TABLET = 7; | 
|  116   } |  117   } | 
|  117 } |  118 } | 
| OLD | NEW |