| 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 // The type this context is associated with. | 700 // The type this context is associated with. |
| 701 optional int32 data_type_id = 1; | 701 optional int32 data_type_id = 1; |
| 702 // The context for the datatype. | 702 // The context for the datatype. |
| 703 optional bytes context = 2; | 703 optional bytes context = 2; |
| 704 // The version of the context. | 704 // The version of the context. |
| 705 optional int64 version = 3; | 705 optional int64 version = 3; |
| 706 } | 706 } |
| 707 | 707 |
| 708 message ClientToServerMessage { | 708 message ClientToServerMessage { |
| 709 required string share = 1; | 709 required string share = 1; |
| 710 optional int32 protocol_version = 2 [default = 34]; | 710 optional int32 protocol_version = 2 [default = 42]; |
| 711 enum Contents { | 711 enum Contents { |
| 712 COMMIT = 1; | 712 COMMIT = 1; |
| 713 GET_UPDATES = 2; | 713 GET_UPDATES = 2; |
| 714 AUTHENTICATE = 3; | 714 AUTHENTICATE = 3; |
| 715 CLEAR_DATA = 4; | 715 CLEAR_DATA = 4; |
| 716 } | 716 } |
| 717 | 717 |
| 718 required Contents message_contents = 3; | 718 required Contents message_contents = 3; |
| 719 optional CommitMessage commit = 4; | 719 optional CommitMessage commit = 4; |
| 720 optional GetUpdatesMessage get_updates = 5; | 720 optional GetUpdatesMessage get_updates = 5; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 // Currently only meaningful if |error_type| is throttled. If this field | 962 // Currently only meaningful if |error_type| is throttled. If this field |
| 963 // is absent then the whole client (all datatypes) is throttled. | 963 // is absent then the whole client (all datatypes) is throttled. |
| 964 repeated int32 error_data_type_ids = 5; | 964 repeated int32 error_data_type_ids = 5; |
| 965 } | 965 } |
| 966 optional Error error = 13; | 966 optional Error error = 13; |
| 967 | 967 |
| 968 // The new per-client state for this client. If set, should be persisted and | 968 // The new per-client state for this client. If set, should be persisted and |
| 969 // sent with any subsequent ClientToServerMessages. | 969 // sent with any subsequent ClientToServerMessages. |
| 970 optional ChipBag new_bag_of_chips = 14; | 970 optional ChipBag new_bag_of_chips = 14; |
| 971 }; | 971 }; |
| OLD | NEW |