| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // Sync protocol for communication between sync client and server. | |
| 6 | |
| 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | |
| 8 // any fields in this file. | |
| 9 | |
| 10 syntax = "proto2"; | |
| 11 | |
| 12 option optimize_for = LITE_RUNTIME; | |
| 13 option retain_unknown_fields = true; | |
| 14 | |
| 15 package sync_pb; | |
| 16 | |
| 17 message SyncEnums { | |
| 18 // These events are sent by |SyncManager| class. Note: In the code they each | |
| 19 // of these events have some additional info but we are not sending them to | |
| 20 // server. | |
| 21 enum EventType { | |
| 22 AUTH_ERROR = 1; // Auth error. Note this gets generated even during | |
| 23 // successful auth with the error set to none. | |
| 24 UPDATED_TOKEN = 2; // Client received an updated token. | |
| 25 PASSPHRASE_REQUIRED = 3; // Cryptographer needs passphrase. | |
| 26 PASSPHRASE_ACCEPTED = 4; // Passphrase was accepted by cryptographer. | |
| 27 INITIALIZATION_COMPLETE = 5; // Sync Initialization is complete. | |
| 28 | |
| 29 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in | |
| 30 // the absence of bugs. | |
| 31 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. | |
| 32 | |
| 33 ENCRYPTED_TYPES_CHANGED = 9; // Set of encrypted types has changed. | |
| 34 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. | |
| 35 ACTIONABLE_ERROR = 8; // Client received an actionable error. | |
| 36 } | |
| 37 | |
| 38 enum ErrorType { | |
| 39 SUCCESS = 0; | |
| 40 ACCESS_DENIED = 1; // Returned when the user doesn't have access to | |
| 41 // store (instead of HTTP 401). | |
| 42 NOT_MY_BIRTHDAY = 2; // Returned when the server and client disagree on | |
| 43 // the store birthday. | |
| 44 THROTTLED = 3; // Returned when the store has exceeded the | |
| 45 // allowed bandwidth utilization. | |
| 46 AUTH_EXPIRED = 4; // Auth token or cookie has expired. | |
| 47 USER_NOT_ACTIVATED = 5; // User doesn't have the Chrome bit set on that | |
| 48 // Google Account. | |
| 49 AUTH_INVALID = 6; // Auth token or cookie is otherwise invalid. | |
| 50 CLEAR_PENDING = 7; // A clear of the user data is pending (e.g. | |
| 51 // initiated by privacy request). Client should | |
| 52 // come back later. | |
| 53 TRANSIENT_ERROR = 8; // A transient error occured (eg. backend | |
| 54 // timeout). Client should try again later. | |
| 55 MIGRATION_DONE = 9; // Migration has finished for one or more data | |
| 56 // types. Client should clear the cache for | |
| 57 // these data types only and then re-sync with | |
| 58 // a server. | |
| 59 UNKNOWN = 100; // Unknown value. This should never be explicitly | |
| 60 // used; it is the default value when an | |
| 61 // out-of-date client parses a value it doesn't | |
| 62 // recognize. | |
| 63 } | |
| 64 } | |
| OLD | NEW |