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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 723 message DataTypeContext { | 723 message DataTypeContext { |
| 724 // The type this context is associated with. | 724 // The type this context is associated with. |
| 725 optional int32 data_type_id = 1; | 725 optional int32 data_type_id = 1; |
| 726 // The context for the datatype. | 726 // The context for the datatype. |
| 727 optional bytes context = 2; | 727 optional bytes context = 2; |
| 728 // The version of the context. | 728 // The version of the context. |
| 729 optional int64 version = 3; | 729 optional int64 version = 3; |
| 730 } | 730 } |
| 731 | 731 |
| 732 message ClientToServerMessage { | 732 message ClientToServerMessage { |
| 733 // |share| field is only used on the server for logging and can sometimes | |
| 734 // contain empty string. It should be deprecated. | |
|
Nicolas Zea
2015/12/30 20:16:23
Could you mention also what's preventing us from d
pavely
2016/01/04 19:05:17
I've updated comment. We shouldn't actually deprec
| |
| 733 required string share = 1; | 735 required string share = 1; |
| 736 | |
| 734 optional int32 protocol_version = 2 [default = 45]; | 737 optional int32 protocol_version = 2 [default = 45]; |
| 735 enum Contents { | 738 enum Contents { |
| 736 COMMIT = 1; | 739 COMMIT = 1; |
| 737 GET_UPDATES = 2; | 740 GET_UPDATES = 2; |
| 738 AUTHENTICATE = 3; | 741 AUTHENTICATE = 3; |
| 739 DEPRECATED_4 = 4; | 742 DEPRECATED_4 = 4; |
| 740 CLEAR_SERVER_DATA = 5; | 743 CLEAR_SERVER_DATA = 5; |
| 741 } | 744 } |
| 742 | 745 |
| 743 // Each ClientToServerMessage contains one request defined by the | 746 // Each ClientToServerMessage contains one request defined by the |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1019 }; | 1022 }; |
| 1020 | 1023 |
| 1021 // A message indicating that the sync engine has been disabled on a client. | 1024 // A message indicating that the sync engine has been disabled on a client. |
| 1022 message SyncDisabledEvent { | 1025 message SyncDisabledEvent { |
| 1023 // The GUID that identifies the sync client. | 1026 // The GUID that identifies the sync client. |
| 1024 optional string cache_guid = 1; | 1027 optional string cache_guid = 1; |
| 1025 | 1028 |
| 1026 // The store birthday that the client was using before disabling sync. | 1029 // The store birthday that the client was using before disabling sync. |
| 1027 optional string store_birthday = 2; | 1030 optional string store_birthday = 2; |
| 1028 }; | 1031 }; |
| OLD | NEW |