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

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

Issue 14655009: Client changes for disabled dasher account (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
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 // 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
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 the account.
Andrew T Wilson (Slow) 2013/05/13 11:51:13 I think a more precise comment would be something
pavely 2013/05/13 22:37:09 Done.
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698