| 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 // The type this context is associated with. | 707 // The type this context is associated with. |
| 708 optional int32 data_type_id = 1; | 708 optional int32 data_type_id = 1; |
| 709 // The context for the datatype. | 709 // The context for the datatype. |
| 710 optional bytes context = 2; | 710 optional bytes context = 2; |
| 711 // The version of the context. | 711 // The version of the context. |
| 712 optional int64 version = 3; | 712 optional int64 version = 3; |
| 713 } | 713 } |
| 714 | 714 |
| 715 message ClientToServerMessage { | 715 message ClientToServerMessage { |
| 716 required string share = 1; | 716 required string share = 1; |
| 717 optional int32 protocol_version = 2 [default = 42]; | 717 optional int32 protocol_version = 2 [default = 43]; |
| 718 enum Contents { | 718 enum Contents { |
| 719 COMMIT = 1; | 719 COMMIT = 1; |
| 720 GET_UPDATES = 2; | 720 GET_UPDATES = 2; |
| 721 AUTHENTICATE = 3; | 721 AUTHENTICATE = 3; |
| 722 CLEAR_DATA = 4; | 722 CLEAR_DATA = 4; |
| 723 } | 723 } |
| 724 | 724 |
| 725 required Contents message_contents = 3; | 725 required Contents message_contents = 3; |
| 726 optional CommitMessage commit = 4; | 726 optional CommitMessage commit = 4; |
| 727 optional GetUpdatesMessage get_updates = 5; | 727 optional GetUpdatesMessage get_updates = 5; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 }; | 990 }; |
| 991 | 991 |
| 992 // A message indicating that the sync engine has been disabled on a client. | 992 // A message indicating that the sync engine has been disabled on a client. |
| 993 message SyncDisabledEvent { | 993 message SyncDisabledEvent { |
| 994 // The GUID that identifies the sync client. | 994 // The GUID that identifies the sync client. |
| 995 optional string cache_guid = 1; | 995 optional string cache_guid = 1; |
| 996 | 996 |
| 997 // The store birthday that the client was using before disabling sync. | 997 // The store birthday that the client was using before disabling sync. |
| 998 optional string store_birthday = 2; | 998 optional string store_birthday = 2; |
| 999 }; | 999 }; |
| OLD | NEW |