| 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"; |
| 11 | 11 |
| 12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
| 13 option retain_unknown_fields = true; | 13 option retain_unknown_fields = true; |
| 14 | 14 |
| 15 package sync_pb; | 15 package sync_pb; |
| 16 | 16 |
| 17 import "app_list_specifics.proto"; | 17 import "app_list_specifics.proto"; |
| 18 import "app_notification_specifics.proto"; | 18 import "app_notification_specifics.proto"; |
| 19 import "app_setting_specifics.proto"; | 19 import "app_setting_specifics.proto"; |
| 20 import "app_specifics.proto"; | 20 import "app_specifics.proto"; |
| 21 import "arc_package_specifics.proto"; |
| 21 import "article_specifics.proto"; | 22 import "article_specifics.proto"; |
| 22 import "attachments.proto"; | 23 import "attachments.proto"; |
| 23 import "autofill_specifics.proto"; | 24 import "autofill_specifics.proto"; |
| 24 import "bookmark_specifics.proto"; | 25 import "bookmark_specifics.proto"; |
| 25 import "client_commands.proto"; | 26 import "client_commands.proto"; |
| 26 import "client_debug_info.proto"; | 27 import "client_debug_info.proto"; |
| 27 import "device_info_specifics.proto"; | 28 import "device_info_specifics.proto"; |
| 28 import "dictionary_specifics.proto"; | 29 import "dictionary_specifics.proto"; |
| 29 import "encryption.proto"; | 30 import "encryption.proto"; |
| 30 import "experiments_specifics.proto"; | 31 import "experiments_specifics.proto"; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 optional ManagedUserSettingSpecifics managed_user_setting = 186662; | 128 optional ManagedUserSettingSpecifics managed_user_setting = 186662; |
| 128 optional ManagedUserSpecifics managed_user = 194582; | 129 optional ManagedUserSpecifics managed_user = 194582; |
| 129 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting = | 130 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting = |
| 130 202026; | 131 202026; |
| 131 optional ManagedUserWhitelistSpecifics managed_user_whitelist = 306060; | 132 optional ManagedUserWhitelistSpecifics managed_user_whitelist = 306060; |
| 132 optional ArticleSpecifics article = 223759; | 133 optional ArticleSpecifics article = 223759; |
| 133 optional AppListSpecifics app_list = 229170; | 134 optional AppListSpecifics app_list = 229170; |
| 134 optional WifiCredentialSpecifics wifi_credential = 218175; | 135 optional WifiCredentialSpecifics wifi_credential = 218175; |
| 135 optional AutofillWalletSpecifics autofill_wallet = 306270; | 136 optional AutofillWalletSpecifics autofill_wallet = 306270; |
| 136 optional WalletMetadataSpecifics wallet_metadata = 330441; | 137 optional WalletMetadataSpecifics wallet_metadata = 330441; |
| 138 optional ArcPackageSpecifics arc_package = 340906; |
| 137 } | 139 } |
| 138 | 140 |
| 139 message SyncEntity { | 141 message SyncEntity { |
| 140 // This item's identifier. In a commit of a new item, this will be a | 142 // This item's identifier. In a commit of a new item, this will be a |
| 141 // client-generated ID. If the commit succeeds, the server will generate | 143 // client-generated ID. If the commit succeeds, the server will generate |
| 142 // a globally unique ID and return it to the committing client in the | 144 // a globally unique ID and return it to the committing client in the |
| 143 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, | 145 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, |
| 144 // |id_string| is always the server generated ID. The original | 146 // |id_string| is always the server generated ID. The original |
| 145 // client-generated ID is preserved in the |originator_client_id| field. | 147 // client-generated ID is preserved in the |originator_client_id| field. |
| 146 // Present in both GetUpdatesResponse and CommitMessage. | 148 // Present in both GetUpdatesResponse and CommitMessage. |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1028 }; | 1030 }; |
| 1029 | 1031 |
| 1030 // A message indicating that the sync engine has been disabled on a client. | 1032 // A message indicating that the sync engine has been disabled on a client. |
| 1031 message SyncDisabledEvent { | 1033 message SyncDisabledEvent { |
| 1032 // The GUID that identifies the sync client. | 1034 // The GUID that identifies the sync client. |
| 1033 optional string cache_guid = 1; | 1035 optional string cache_guid = 1; |
| 1034 | 1036 |
| 1035 // The store birthday that the client was using before disabling sync. | 1037 // The store birthday that the client was using before disabling sync. |
| 1036 optional string store_birthday = 2; | 1038 optional string store_birthday = 2; |
| 1037 }; | 1039 }; |
| OLD | NEW |