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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 } | 70 } |
71 | 71 |
72 // Types of redirects that triggered a transition. | 72 // Types of redirects that triggered a transition. |
73 enum PageTransitionRedirectType { | 73 enum PageTransitionRedirectType { |
74 CLIENT_REDIRECT = 1; | 74 CLIENT_REDIRECT = 1; |
75 SERVER_REDIRECT = 2; | 75 SERVER_REDIRECT = 2; |
76 } | 76 } |
77 | 77 |
78 enum ErrorType { | 78 enum ErrorType { |
79 SUCCESS = 0; | 79 SUCCESS = 0; |
80 ACCESS_DENIED = 1; // Returned when the user doesn't have access to | 80 DEPRECATED_1 = 1; // Was ACCESS_DENIED. |
Nicolas Zea
2015/12/07 23:10:19
I haven't seen this naming pattern before for depr
timonvo
2015/12/07 23:15:17
FWIW, we've used this pattern elsewhere on the ser
| |
81 // store (instead of HTTP 401). | |
82 NOT_MY_BIRTHDAY = 2; // Returned when the server and client disagree | 81 NOT_MY_BIRTHDAY = 2; // Returned when the server and client disagree |
83 // on the store birthday. | 82 // on the store birthday. |
84 THROTTLED = 3; // Returned when the store has exceeded the | 83 THROTTLED = 3; // Returned when the store has exceeded the |
85 // allowed bandwidth utilization. | 84 // allowed bandwidth utilization. |
86 AUTH_EXPIRED = 4; // Auth token or cookie has expired. | 85 DEPRECATED_4 = 4; // Was AUTH_EXPIRED. |
87 USER_NOT_ACTIVATED = 5; // User doesn't have the Chrome bit set on that | 86 DEPRECATED_5 = 5; // Was USER_NOT_ACTIVATED. |
88 // Google Account. | 87 DEPRECATED_6 = 6; // Was AUTH_INVALID. |
89 AUTH_INVALID = 6; // Auth token or cookie is otherwise invalid. | |
90 CLEAR_PENDING = 7; // A clear of the user data is pending (e.g. | 88 CLEAR_PENDING = 7; // A clear of the user data is pending (e.g. |
91 // initiated by privacy request). Client should | 89 // initiated by privacy request). Client should |
92 // come back later. | 90 // come back later. |
93 TRANSIENT_ERROR = 8; // A transient error occured (eg. backend | 91 TRANSIENT_ERROR = 8; // A transient error occured (eg. backend |
94 // timeout). Client should try again later. | 92 // timeout). Client should try again later. |
95 MIGRATION_DONE = 9; // Migration has finished for one or more data | 93 MIGRATION_DONE = 9; // Migration has finished for one or more data |
96 // types. Client should clear the cache for | 94 // types. Client should clear the cache for |
97 // these data types only and then re-sync with | 95 // these data types only and then re-sync with |
98 // a server. | 96 // a server. |
99 DISABLED_BY_ADMIN = 10; // An administrator disabled sync for this | 97 DISABLED_BY_ADMIN = 10; // An administrator disabled sync for this |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 // user opted to sync a different set of datatypes. | 158 // user opted to sync a different set of datatypes. |
161 GU_TRIGGER = 12; // The client is in 'normal' mode. It may have several | 159 GU_TRIGGER = 12; // The client is in 'normal' mode. It may have several |
162 // reasons for requesting an update. See the per-type | 160 // reasons for requesting an update. See the per-type |
163 // GetUpdateTriggers message for more details. | 161 // GetUpdateTriggers message for more details. |
164 RETRY = 13; // A retry GU to pick up updates missed by last GU due to | 162 RETRY = 13; // A retry GU to pick up updates missed by last GU due to |
165 // replication delay, missing hints, etc. | 163 // replication delay, missing hints, etc. |
166 PROGRAMMATIC = 14; // A GU to programmatically enable/disable a | 164 PROGRAMMATIC = 14; // A GU to programmatically enable/disable a |
167 // datatype, often due to error handling. | 165 // datatype, often due to error handling. |
168 } | 166 } |
169 } | 167 } |
OLD | NEW |