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 "get_updates_caller_info.proto"; | 22 import "get_updates_caller_info.proto"; |
23 import "extension_setting_specifics.proto"; | 23 import "extension_setting_specifics.proto"; |
24 import "extension_specifics.proto"; | 24 import "extension_specifics.proto"; |
| 25 import "history_delete_directive_specifics.proto"; |
25 import "nigori_specifics.proto"; | 26 import "nigori_specifics.proto"; |
26 import "password_specifics.proto"; | 27 import "password_specifics.proto"; |
27 import "preference_specifics.proto"; | 28 import "preference_specifics.proto"; |
28 import "search_engine_specifics.proto"; | 29 import "search_engine_specifics.proto"; |
29 import "session_specifics.proto"; | 30 import "session_specifics.proto"; |
30 import "theme_specifics.proto"; | 31 import "theme_specifics.proto"; |
31 import "typed_url_specifics.proto"; | 32 import "typed_url_specifics.proto"; |
32 import "encryption.proto"; | 33 import "encryption.proto"; |
33 import "sync_enums.proto"; | 34 import "sync_enums.proto"; |
34 import "client_commands.proto"; | 35 import "client_commands.proto"; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 optional AppNotification app_notification = 45184; | 91 optional AppNotification app_notification = 45184; |
91 optional PasswordSpecifics password = 45873; | 92 optional PasswordSpecifics password = 45873; |
92 optional NigoriSpecifics nigori = 47745; | 93 optional NigoriSpecifics nigori = 47745; |
93 optional ExtensionSpecifics extension = 48119; | 94 optional ExtensionSpecifics extension = 48119; |
94 optional AppSpecifics app = 48364; | 95 optional AppSpecifics app = 48364; |
95 optional SessionSpecifics session = 50119; | 96 optional SessionSpecifics session = 50119; |
96 optional AutofillProfileSpecifics autofill_profile = 63951; | 97 optional AutofillProfileSpecifics autofill_profile = 63951; |
97 optional SearchEngineSpecifics search_engine = 88610; | 98 optional SearchEngineSpecifics search_engine = 88610; |
98 optional ExtensionSettingSpecifics extension_setting = 96159; | 99 optional ExtensionSettingSpecifics extension_setting = 96159; |
99 optional AppSettingSpecifics app_setting = 103656; | 100 optional AppSettingSpecifics app_setting = 103656; |
| 101 optional HistoryDeleteDirectiveSpecifics history_delete_directive = 150251; |
100 } | 102 } |
101 | 103 |
102 message SyncEntity { | 104 message SyncEntity { |
103 // This item's identifier. In a commit of a new item, this will be a | 105 // This item's identifier. In a commit of a new item, this will be a |
104 // client-generated ID. If the commit succeeds, the server will generate | 106 // client-generated ID. If the commit succeeds, the server will generate |
105 // a globally unique ID and return it to the committing client in the | 107 // a globally unique ID and return it to the committing client in the |
106 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, | 108 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, |
107 // |id_string| is always the server generated ID. The original | 109 // |id_string| is always the server generated ID. The original |
108 // client-generated ID is preserved in the |originator_client_id| field. | 110 // client-generated ID is preserved in the |originator_client_id| field. |
109 // Present in both GetUpdatesResponse and CommitMessage. | 111 // Present in both GetUpdatesResponse and CommitMessage. |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 optional string url = 3; | 675 optional string url = 3; |
674 optional SyncEnums.Action action = 4 [default = UNKNOWN_ACTION]; | 676 optional SyncEnums.Action action = 4 [default = UNKNOWN_ACTION]; |
675 | 677 |
676 // Currently only meaningful if |error_type| is throttled. If this field | 678 // Currently only meaningful if |error_type| is throttled. If this field |
677 // is absent then the whole client (all datatypes) is throttled. | 679 // is absent then the whole client (all datatypes) is throttled. |
678 repeated int32 error_data_type_ids = 5; | 680 repeated int32 error_data_type_ids = 5; |
679 } | 681 } |
680 optional Error error = 13; | 682 optional Error error = 13; |
681 }; | 683 }; |
682 | 684 |
OLD | NEW |