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_notification_specifics.proto"; | 17 import "app_notification_specifics.proto"; |
18 import "app_setting_specifics.proto"; | 18 import "app_setting_specifics.proto"; |
19 import "app_specifics.proto"; | 19 import "app_specifics.proto"; |
20 import "autofill_specifics.proto"; | 20 import "autofill_specifics.proto"; |
21 import "bookmark_specifics.proto"; | 21 import "bookmark_specifics.proto"; |
22 import "client_commands.proto"; | 22 import "client_commands.proto"; |
23 import "client_debug_info.proto"; | 23 import "client_debug_info.proto"; |
24 import "device_info_specifics.proto"; | 24 import "device_info_specifics.proto"; |
| 25 import "dictionary_specifics.proto"; |
25 import "encryption.proto"; | 26 import "encryption.proto"; |
26 import "experiments_specifics.proto"; | 27 import "experiments_specifics.proto"; |
27 import "extension_setting_specifics.proto"; | 28 import "extension_setting_specifics.proto"; |
28 import "extension_specifics.proto"; | 29 import "extension_specifics.proto"; |
29 import "get_updates_caller_info.proto"; | 30 import "get_updates_caller_info.proto"; |
30 import "history_delete_directive_specifics.proto"; | 31 import "history_delete_directive_specifics.proto"; |
31 import "nigori_specifics.proto"; | 32 import "nigori_specifics.proto"; |
32 import "password_specifics.proto"; | 33 import "password_specifics.proto"; |
33 import "preference_specifics.proto"; | 34 import "preference_specifics.proto"; |
34 import "priority_preference_specifics.proto"; | 35 import "priority_preference_specifics.proto"; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 optional SessionSpecifics session = 50119; | 101 optional SessionSpecifics session = 50119; |
101 optional AutofillProfileSpecifics autofill_profile = 63951; | 102 optional AutofillProfileSpecifics autofill_profile = 63951; |
102 optional SearchEngineSpecifics search_engine = 88610; | 103 optional SearchEngineSpecifics search_engine = 88610; |
103 optional ExtensionSettingSpecifics extension_setting = 96159; | 104 optional ExtensionSettingSpecifics extension_setting = 96159; |
104 optional AppSettingSpecifics app_setting = 103656; | 105 optional AppSettingSpecifics app_setting = 103656; |
105 optional HistoryDeleteDirectiveSpecifics history_delete_directive = 150251; | 106 optional HistoryDeleteDirectiveSpecifics history_delete_directive = 150251; |
106 optional SyncedNotificationSpecifics synced_notification = 153108; | 107 optional SyncedNotificationSpecifics synced_notification = 153108; |
107 optional DeviceInfoSpecifics device_info = 154522; | 108 optional DeviceInfoSpecifics device_info = 154522; |
108 optional ExperimentsSpecifics experiments = 161496; | 109 optional ExperimentsSpecifics experiments = 161496; |
109 optional PriorityPreferenceSpecifics priority_preference = 163425; | 110 optional PriorityPreferenceSpecifics priority_preference = 163425; |
| 111 optional DictionarySpecifics dictionary = 170540; |
110 } | 112 } |
111 | 113 |
112 message SyncEntity { | 114 message SyncEntity { |
113 // This item's identifier. In a commit of a new item, this will be a | 115 // This item's identifier. In a commit of a new item, this will be a |
114 // client-generated ID. If the commit succeeds, the server will generate | 116 // client-generated ID. If the commit succeeds, the server will generate |
115 // a globally unique ID and return it to the committing client in the | 117 // a globally unique ID and return it to the committing client in the |
116 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, | 118 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, |
117 // |id_string| is always the server generated ID. The original | 119 // |id_string| is always the server generated ID. The original |
118 // client-generated ID is preserved in the |originator_client_id| field. | 120 // client-generated ID is preserved in the |originator_client_id| field. |
119 // Present in both GetUpdatesResponse and CommitMessage. | 121 // Present in both GetUpdatesResponse and CommitMessage. |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 // is absent then the whole client (all datatypes) is throttled. | 747 // is absent then the whole client (all datatypes) is throttled. |
746 repeated int32 error_data_type_ids = 5; | 748 repeated int32 error_data_type_ids = 5; |
747 } | 749 } |
748 optional Error error = 13; | 750 optional Error error = 13; |
749 | 751 |
750 // The new per-client state for this client. If set, should be persisted and | 752 // The new per-client state for this client. If set, should be persisted and |
751 // sent with any subsequent ClientToServerMessages. | 753 // sent with any subsequent ClientToServerMessages. |
752 optional ChipBag new_bag_of_chips = 14; | 754 optional ChipBag new_bag_of_chips = 14; |
753 }; | 755 }; |
754 | 756 |
OLD | NEW |