Chromium Code Reviews| 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 685 // The type this context is associated with. | 685 // The type this context is associated with. |
| 686 optional int32 data_type_id = 1; | 686 optional int32 data_type_id = 1; |
| 687 // The context for the datatype. | 687 // The context for the datatype. |
| 688 optional bytes context = 2; | 688 optional bytes context = 2; |
| 689 // The version of the context. | 689 // The version of the context. |
| 690 optional int64 version = 3; | 690 optional int64 version = 3; |
| 691 } | 691 } |
| 692 | 692 |
| 693 message ClientToServerMessage { | 693 message ClientToServerMessage { |
| 694 required string share = 1; | 694 required string share = 1; |
| 695 optional int32 protocol_version = 2 [default = 32]; | 695 optional int32 protocol_version = 2 [default = 33]; |
|
haitaol1
2014/05/19 21:59:12
Do you have to change this? How is this used on se
rlarocque
2014/05/19 22:14:57
This is used to tell the server when semantics for
| |
| 696 enum Contents { | 696 enum Contents { |
| 697 COMMIT = 1; | 697 COMMIT = 1; |
| 698 GET_UPDATES = 2; | 698 GET_UPDATES = 2; |
| 699 AUTHENTICATE = 3; | 699 AUTHENTICATE = 3; |
| 700 CLEAR_DATA = 4; | 700 CLEAR_DATA = 4; |
| 701 } | 701 } |
| 702 | 702 |
| 703 required Contents message_contents = 3; | 703 required Contents message_contents = 3; |
| 704 optional CommitMessage commit = 4; | 704 optional CommitMessage commit = 4; |
| 705 optional GetUpdatesMessage get_updates = 5; | 705 optional GetUpdatesMessage get_updates = 5; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 947 // Currently only meaningful if |error_type| is throttled. If this field | 947 // Currently only meaningful if |error_type| is throttled. If this field |
| 948 // is absent then the whole client (all datatypes) is throttled. | 948 // is absent then the whole client (all datatypes) is throttled. |
| 949 repeated int32 error_data_type_ids = 5; | 949 repeated int32 error_data_type_ids = 5; |
| 950 } | 950 } |
| 951 optional Error error = 13; | 951 optional Error error = 13; |
| 952 | 952 |
| 953 // The new per-client state for this client. If set, should be persisted and | 953 // The new per-client state for this client. If set, should be persisted and |
| 954 // sent with any subsequent ClientToServerMessages. | 954 // sent with any subsequent ClientToServerMessages. |
| 955 optional ChipBag new_bag_of_chips = 14; | 955 optional ChipBag new_bag_of_chips = 14; |
| 956 }; | 956 }; |
| OLD | NEW |