| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // way, it is possible to add new datatype fields without having | 95 // way, it is possible to add new datatype fields without having |
| 96 // to update the server. | 96 // to update the server. |
| 97 // | 97 // |
| 98 // Note: The tag selection process is based on legacy versions of the | 98 // Note: The tag selection process is based on legacy versions of the |
| 99 // protocol which used protobuf extensions. We have kept the process | 99 // protocol which used protobuf extensions. We have kept the process |
| 100 // consistent as the old values cannot change. The 5+ digit nature of the | 100 // consistent as the old values cannot change. The 5+ digit nature of the |
| 101 // tags also makes them recognizable (individually and collectively) from | 101 // tags also makes them recognizable (individually and collectively) from |
| 102 // noise in logs and debugging contexts, and creating a divergent subset of | 102 // noise in logs and debugging contexts, and creating a divergent subset of |
| 103 // tags would only make things a bit more confusing. | 103 // tags would only make things a bit more confusing. |
| 104 | 104 |
| 105 optional AutofillSpecifics autofill = 31729; | 105 oneof specifics_variant { |
| 106 optional BookmarkSpecifics bookmark = 32904; | 106 AutofillSpecifics autofill = 31729; |
| 107 optional PreferenceSpecifics preference = 37702; | 107 BookmarkSpecifics bookmark = 32904; |
| 108 optional TypedUrlSpecifics typed_url = 40781; | 108 PreferenceSpecifics preference = 37702; |
| 109 optional ThemeSpecifics theme = 41210; | 109 TypedUrlSpecifics typed_url = 40781; |
| 110 optional AppNotification app_notification = 45184; | 110 ThemeSpecifics theme = 41210; |
| 111 optional PasswordSpecifics password = 45873; | 111 AppNotification app_notification = 45184; |
| 112 optional NigoriSpecifics nigori = 47745; | 112 PasswordSpecifics password = 45873; |
| 113 optional ExtensionSpecifics extension = 48119; | 113 NigoriSpecifics nigori = 47745; |
| 114 optional AppSpecifics app = 48364; | 114 ExtensionSpecifics extension = 48119; |
| 115 optional SessionSpecifics session = 50119; | 115 AppSpecifics app = 48364; |
| 116 optional AutofillProfileSpecifics autofill_profile = 63951; | 116 SessionSpecifics session = 50119; |
| 117 optional SearchEngineSpecifics search_engine = 88610; | 117 AutofillProfileSpecifics autofill_profile = 63951; |
| 118 optional ExtensionSettingSpecifics extension_setting = 96159; | 118 SearchEngineSpecifics search_engine = 88610; |
| 119 optional AppSettingSpecifics app_setting = 103656; | 119 ExtensionSettingSpecifics extension_setting = 96159; |
| 120 optional HistoryDeleteDirectiveSpecifics history_delete_directive = 150251; | 120 AppSettingSpecifics app_setting = 103656; |
| 121 optional SyncedNotificationSpecifics synced_notification = 153108; | 121 HistoryDeleteDirectiveSpecifics history_delete_directive = 150251; |
| 122 optional SyncedNotificationAppInfoSpecifics synced_notification_app_info = | 122 SyncedNotificationSpecifics synced_notification = 153108; |
| 123 235816; | 123 SyncedNotificationAppInfoSpecifics synced_notification_app_info = 235816; |
| 124 optional DeviceInfoSpecifics device_info = 154522; | 124 DeviceInfoSpecifics device_info = 154522; |
| 125 optional ExperimentsSpecifics experiments = 161496; | 125 ExperimentsSpecifics experiments = 161496; |
| 126 optional PriorityPreferenceSpecifics priority_preference = 163425; | 126 PriorityPreferenceSpecifics priority_preference = 163425; |
| 127 optional DictionarySpecifics dictionary = 170540; | 127 DictionarySpecifics dictionary = 170540; |
| 128 optional FaviconTrackingSpecifics favicon_tracking = 181534; | 128 FaviconTrackingSpecifics favicon_tracking = 181534; |
| 129 optional FaviconImageSpecifics favicon_image = 182019; | 129 FaviconImageSpecifics favicon_image = 182019; |
| 130 optional ManagedUserSettingSpecifics managed_user_setting = 186662; | 130 ManagedUserSettingSpecifics managed_user_setting = 186662; |
| 131 optional ManagedUserSpecifics managed_user = 194582; | 131 ManagedUserSpecifics managed_user = 194582; |
| 132 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting = | 132 ManagedUserSharedSettingSpecifics managed_user_shared_setting = 202026; |
| 133 202026; | 133 ManagedUserWhitelistSpecifics managed_user_whitelist = 306060; |
| 134 optional ManagedUserWhitelistSpecifics managed_user_whitelist = 306060; | 134 ArticleSpecifics article = 223759; |
| 135 optional ArticleSpecifics article = 223759; | 135 AppListSpecifics app_list = 229170; |
| 136 optional AppListSpecifics app_list = 229170; | 136 WifiCredentialSpecifics wifi_credential = 218175; |
| 137 optional WifiCredentialSpecifics wifi_credential = 218175; | 137 AutofillWalletSpecifics autofill_wallet = 306270; |
| 138 optional AutofillWalletSpecifics autofill_wallet = 306270; | 138 WalletMetadataSpecifics wallet_metadata = 330441; |
| 139 optional WalletMetadataSpecifics wallet_metadata = 330441; | 139 ArcPackageSpecifics arc_package = 340906; |
| 140 optional ArcPackageSpecifics arc_package = 340906; | 140 PrinterSpecifics printer = 410745; |
| 141 optional PrinterSpecifics printer = 410745; | 141 ReadingListSpecifics reading_list = 411028; |
| 142 optional ReadingListSpecifics reading_list = 411028; | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 message SyncEntity { | 145 message SyncEntity { |
| 146 // This item's identifier. In a commit of a new item, this will be a | 146 // This item's identifier. In a commit of a new item, this will be a |
| 147 // client-generated ID. If the commit succeeds, the server will generate | 147 // client-generated ID. If the commit succeeds, the server will generate |
| 148 // a globally unique ID and return it to the committing client in the | 148 // a globally unique ID and return it to the committing client in the |
| 149 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, | 149 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, |
| 150 // |id_string| is always the server generated ID. The original | 150 // |id_string| is always the server generated ID. The original |
| 151 // client-generated ID is preserved in the |originator_client_id| field. | 151 // client-generated ID is preserved in the |originator_client_id| field. |
| 152 // Present in both GetUpdatesResponse and CommitMessage. | 152 // Present in both GetUpdatesResponse and CommitMessage. |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 message EventResponse {}; | 1038 message EventResponse {}; |
| 1039 | 1039 |
| 1040 // A message indicating that the sync engine has been disabled on a client. | 1040 // A message indicating that the sync engine has been disabled on a client. |
| 1041 message SyncDisabledEvent { | 1041 message SyncDisabledEvent { |
| 1042 // The GUID that identifies the sync client. | 1042 // The GUID that identifies the sync client. |
| 1043 optional string cache_guid = 1; | 1043 optional string cache_guid = 1; |
| 1044 | 1044 |
| 1045 // The store birthday that the client was using before disabling sync. | 1045 // The store birthday that the client was using before disabling sync. |
| 1046 optional string store_birthday = 2; | 1046 optional string store_birthday = 2; |
| 1047 }; | 1047 }; |
| OLD | NEW |