| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in | 29 // |STOP_SYNCING_PERMANENTLY| event should never be seen by the server in |
| 30 // the absence of bugs. | 30 // the absence of bugs. |
| 31 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. | 31 STOP_SYNCING_PERMANENTLY = 6; // Server sent stop syncing permanently. |
| 32 | 32 |
| 33 ENCRYPTED_TYPES_CHANGED = 9; // Set of encrypted types has changed. | 33 ENCRYPTED_TYPES_CHANGED = 9; // Set of encrypted types has changed. |
| 34 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. | 34 ENCRYPTION_COMPLETE = 7; // Client has finished encrypting all data. |
| 35 ACTIONABLE_ERROR = 8; // Client received an actionable error. | 35 ACTIONABLE_ERROR = 8; // Client received an actionable error. |
| 36 } | 36 } |
| 37 | 37 |
| 38 // Types of transitions between pages. |
| 39 enum PageTransition { |
| 40 LINK = 0; |
| 41 TYPED = 1; |
| 42 AUTO_BOOKMARK = 2; |
| 43 AUTO_SUBFRAME = 3; |
| 44 MANUAL_SUBFRAME = 4; |
| 45 GENERATED = 5; |
| 46 START_PAGE = 6; |
| 47 FORM_SUBMIT = 7; |
| 48 RELOAD = 8; |
| 49 KEYWORD = 9; |
| 50 KEYWORD_GENERATED = 10; |
| 51 CHAIN_START = 12; |
| 52 CHAIN_END = 13; |
| 53 } |
| 54 |
| 55 // These qualifiers further define the transition. |
| 56 enum PageTransitionQualifier { |
| 57 CLIENT_REDIRECT = 1; |
| 58 SERVER_REDIRECT = 2; |
| 59 } |
| 60 |
| 38 enum ErrorType { | 61 enum ErrorType { |
| 39 SUCCESS = 0; | 62 SUCCESS = 0; |
| 40 ACCESS_DENIED = 1; // Returned when the user doesn't have access to | 63 ACCESS_DENIED = 1; // Returned when the user doesn't have access to |
| 41 // store (instead of HTTP 401). | 64 // store (instead of HTTP 401). |
| 42 NOT_MY_BIRTHDAY = 2; // Returned when the server and client disagree on | 65 NOT_MY_BIRTHDAY = 2; // Returned when the server and client disagree on |
| 43 // the store birthday. | 66 // the store birthday. |
| 44 THROTTLED = 3; // Returned when the store has exceeded the | 67 THROTTLED = 3; // Returned when the store has exceeded the |
| 45 // allowed bandwidth utilization. | 68 // allowed bandwidth utilization. |
| 46 AUTH_EXPIRED = 4; // Auth token or cookie has expired. | 69 AUTH_EXPIRED = 4; // Auth token or cookie has expired. |
| 47 USER_NOT_ACTIVATED = 5; // User doesn't have the Chrome bit set on that | 70 USER_NOT_ACTIVATED = 5; // User doesn't have the Chrome bit set on that |
| (...skipping 19 matching lines...) Expand all Loading... |
| 67 CLEAR_USER_DATA_AND_RESYNC = 1; // Clear user data from dashboard and | 90 CLEAR_USER_DATA_AND_RESYNC = 1; // Clear user data from dashboard and |
| 68 // setup sync again. | 91 // setup sync again. |
| 69 ENABLE_SYNC_ON_ACCOUNT = 2; // The administrator needs to enable sync | 92 ENABLE_SYNC_ON_ACCOUNT = 2; // The administrator needs to enable sync |
| 70 // on the account. | 93 // on the account. |
| 71 STOP_AND_RESTART_SYNC = 3; // Stop sync and set up sync again. | 94 STOP_AND_RESTART_SYNC = 3; // Stop sync and set up sync again. |
| 72 DISABLE_SYNC_ON_CLIENT = 4; // Wipe the client of all sync data and | 95 DISABLE_SYNC_ON_CLIENT = 4; // Wipe the client of all sync data and |
| 73 // stop syncing. | 96 // stop syncing. |
| 74 UNKNOWN_ACTION = 5; // This is the default. | 97 UNKNOWN_ACTION = 5; // This is the default. |
| 75 } | 98 } |
| 76 } | 99 } |
| OLD | NEW |