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 "encryption.proto"; | 25 import "encryption.proto"; |
26 import "extension_setting_specifics.proto"; | 26 import "extension_setting_specifics.proto"; |
27 import "extension_specifics.proto"; | 27 import "extension_specifics.proto"; |
28 import "get_updates_caller_info.proto"; | 28 import "get_updates_caller_info.proto"; |
| 29 import "history_delete_directive_specifics.proto"; |
29 import "nigori_specifics.proto"; | 30 import "nigori_specifics.proto"; |
30 import "password_specifics.proto"; | 31 import "password_specifics.proto"; |
31 import "preference_specifics.proto"; | 32 import "preference_specifics.proto"; |
32 import "search_engine_specifics.proto"; | 33 import "search_engine_specifics.proto"; |
33 import "session_specifics.proto"; | 34 import "session_specifics.proto"; |
34 import "sync_enums.proto"; | 35 import "sync_enums.proto"; |
35 import "theme_specifics.proto"; | 36 import "theme_specifics.proto"; |
36 import "typed_url_specifics.proto"; | 37 import "typed_url_specifics.proto"; |
37 | 38 |
38 // Used for inspecting how long we spent performing operations in different | 39 // Used for inspecting how long we spent performing operations in different |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 optional AppNotification app_notification = 45184; | 92 optional AppNotification app_notification = 45184; |
92 optional PasswordSpecifics password = 45873; | 93 optional PasswordSpecifics password = 45873; |
93 optional NigoriSpecifics nigori = 47745; | 94 optional NigoriSpecifics nigori = 47745; |
94 optional ExtensionSpecifics extension = 48119; | 95 optional ExtensionSpecifics extension = 48119; |
95 optional AppSpecifics app = 48364; | 96 optional AppSpecifics app = 48364; |
96 optional SessionSpecifics session = 50119; | 97 optional SessionSpecifics session = 50119; |
97 optional AutofillProfileSpecifics autofill_profile = 63951; | 98 optional AutofillProfileSpecifics autofill_profile = 63951; |
98 optional SearchEngineSpecifics search_engine = 88610; | 99 optional SearchEngineSpecifics search_engine = 88610; |
99 optional ExtensionSettingSpecifics extension_setting = 96159; | 100 optional ExtensionSettingSpecifics extension_setting = 96159; |
100 optional AppSettingSpecifics app_setting = 103656; | 101 optional AppSettingSpecifics app_setting = 103656; |
| 102 optional HistoryDeleteDirectiveSpecifics history_delete_directive = 150251; |
101 optional DeviceInfoSpecifics device_info = 154522; | 103 optional DeviceInfoSpecifics device_info = 154522; |
102 } | 104 } |
103 | 105 |
104 message SyncEntity { | 106 message SyncEntity { |
105 // This item's identifier. In a commit of a new item, this will be a | 107 // This item's identifier. In a commit of a new item, this will be a |
106 // client-generated ID. If the commit succeeds, the server will generate | 108 // client-generated ID. If the commit succeeds, the server will generate |
107 // a globally unique ID and return it to the committing client in the | 109 // a globally unique ID and return it to the committing client in the |
108 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, | 110 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, |
109 // |id_string| is always the server generated ID. The original | 111 // |id_string| is always the server generated ID. The original |
110 // client-generated ID is preserved in the |originator_client_id| field. | 112 // client-generated ID is preserved in the |originator_client_id| field. |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 // is absent then the whole client (all datatypes) is throttled. | 709 // is absent then the whole client (all datatypes) is throttled. |
708 repeated int32 error_data_type_ids = 5; | 710 repeated int32 error_data_type_ids = 5; |
709 } | 711 } |
710 optional Error error = 13; | 712 optional Error error = 13; |
711 | 713 |
712 // The new per-client state for this client. If set, should be persisted and | 714 // The new per-client state for this client. If set, should be persisted and |
713 // sent with any subsequent ClientToServerMessages. | 715 // sent with any subsequent ClientToServerMessages. |
714 optional ChipBag new_bag_of_chips = 14; | 716 optional ChipBag new_bag_of_chips = 14; |
715 }; | 717 }; |
716 | 718 |
OLD | NEW |