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 13 matching lines...) Expand all Loading... |
24 import "device_info_specifics.proto"; | 24 import "device_info_specifics.proto"; |
25 import "encryption.proto"; | 25 import "encryption.proto"; |
26 import "experiments_specifics.proto"; | 26 import "experiments_specifics.proto"; |
27 import "extension_setting_specifics.proto"; | 27 import "extension_setting_specifics.proto"; |
28 import "extension_specifics.proto"; | 28 import "extension_specifics.proto"; |
29 import "get_updates_caller_info.proto"; | 29 import "get_updates_caller_info.proto"; |
30 import "history_delete_directive_specifics.proto"; | 30 import "history_delete_directive_specifics.proto"; |
31 import "nigori_specifics.proto"; | 31 import "nigori_specifics.proto"; |
32 import "password_specifics.proto"; | 32 import "password_specifics.proto"; |
33 import "preference_specifics.proto"; | 33 import "preference_specifics.proto"; |
| 34 import "push_notifications_specifics.proto"; |
34 import "search_engine_specifics.proto"; | 35 import "search_engine_specifics.proto"; |
35 import "session_specifics.proto"; | 36 import "session_specifics.proto"; |
36 import "sync_enums.proto"; | 37 import "sync_enums.proto"; |
37 import "theme_specifics.proto"; | 38 import "theme_specifics.proto"; |
38 import "typed_url_specifics.proto"; | 39 import "typed_url_specifics.proto"; |
39 | 40 |
40 // Used for inspecting how long we spent performing operations in different | 41 // Used for inspecting how long we spent performing operations in different |
41 // backends. All times must be in millis. | 42 // backends. All times must be in millis. |
42 message ProfilingData { | 43 message ProfilingData { |
43 optional int64 meta_data_write_time = 1; | 44 optional int64 meta_data_write_time = 1; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 optional PasswordSpecifics password = 45873; | 95 optional PasswordSpecifics password = 45873; |
95 optional NigoriSpecifics nigori = 47745; | 96 optional NigoriSpecifics nigori = 47745; |
96 optional ExtensionSpecifics extension = 48119; | 97 optional ExtensionSpecifics extension = 48119; |
97 optional AppSpecifics app = 48364; | 98 optional AppSpecifics app = 48364; |
98 optional SessionSpecifics session = 50119; | 99 optional SessionSpecifics session = 50119; |
99 optional AutofillProfileSpecifics autofill_profile = 63951; | 100 optional AutofillProfileSpecifics autofill_profile = 63951; |
100 optional SearchEngineSpecifics search_engine = 88610; | 101 optional SearchEngineSpecifics search_engine = 88610; |
101 optional ExtensionSettingSpecifics extension_setting = 96159; | 102 optional ExtensionSettingSpecifics extension_setting = 96159; |
102 optional AppSettingSpecifics app_setting = 103656; | 103 optional AppSettingSpecifics app_setting = 103656; |
103 optional HistoryDeleteDirectiveSpecifics history_delete_directive = 150251; | 104 optional HistoryDeleteDirectiveSpecifics history_delete_directive = 150251; |
| 105 optional PushNotificationsSpecifics push_notifications = 153108; |
104 optional DeviceInfoSpecifics device_info = 154522; | 106 optional DeviceInfoSpecifics device_info = 154522; |
105 optional ExperimentsSpecifics experiments = 161496; | 107 optional ExperimentsSpecifics experiments = 161496; |
106 } | 108 } |
107 | 109 |
108 message SyncEntity { | 110 message SyncEntity { |
109 // This item's identifier. In a commit of a new item, this will be a | 111 // This item's identifier. In a commit of a new item, this will be a |
110 // client-generated ID. If the commit succeeds, the server will generate | 112 // client-generated ID. If the commit succeeds, the server will generate |
111 // a globally unique ID and return it to the committing client in the | 113 // a globally unique ID and return it to the committing client in the |
112 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, | 114 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, |
113 // |id_string| is always the server generated ID. The original | 115 // |id_string| is always the server generated ID. The original |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 // is absent then the whole client (all datatypes) is throttled. | 728 // is absent then the whole client (all datatypes) is throttled. |
727 repeated int32 error_data_type_ids = 5; | 729 repeated int32 error_data_type_ids = 5; |
728 } | 730 } |
729 optional Error error = 13; | 731 optional Error error = 13; |
730 | 732 |
731 // The new per-client state for this client. If set, should be persisted and | 733 // The new per-client state for this client. If set, should be persisted and |
732 // sent with any subsequent ClientToServerMessages. | 734 // sent with any subsequent ClientToServerMessages. |
733 optional ChipBag new_bag_of_chips = 14; | 735 optional ChipBag new_bag_of_chips = 14; |
734 }; | 736 }; |
735 | 737 |
OLD | NEW |