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 "client_commands.proto"; |
| 23 import "client_debug_info.proto"; |
| 24 import "device_info_specifics.proto"; |
| 25 import "encryption.proto"; |
23 import "extension_setting_specifics.proto"; | 26 import "extension_setting_specifics.proto"; |
24 import "extension_specifics.proto"; | 27 import "extension_specifics.proto"; |
| 28 import "get_updates_caller_info.proto"; |
25 import "nigori_specifics.proto"; | 29 import "nigori_specifics.proto"; |
26 import "password_specifics.proto"; | 30 import "password_specifics.proto"; |
27 import "preference_specifics.proto"; | 31 import "preference_specifics.proto"; |
28 import "search_engine_specifics.proto"; | 32 import "search_engine_specifics.proto"; |
29 import "session_specifics.proto"; | 33 import "session_specifics.proto"; |
| 34 import "sync_enums.proto"; |
30 import "theme_specifics.proto"; | 35 import "theme_specifics.proto"; |
31 import "typed_url_specifics.proto"; | 36 import "typed_url_specifics.proto"; |
32 import "encryption.proto"; | |
33 import "sync_enums.proto"; | |
34 import "client_commands.proto"; | |
35 import "client_debug_info.proto"; | |
36 | 37 |
37 // Used for inspecting how long we spent performing operations in different | 38 // Used for inspecting how long we spent performing operations in different |
38 // backends. All times must be in millis. | 39 // backends. All times must be in millis. |
39 message ProfilingData { | 40 message ProfilingData { |
40 optional int64 meta_data_write_time = 1; | 41 optional int64 meta_data_write_time = 1; |
41 optional int64 file_data_write_time = 2; | 42 optional int64 file_data_write_time = 2; |
42 optional int64 user_lookup_time = 3; | 43 optional int64 user_lookup_time = 3; |
43 optional int64 meta_data_read_time = 4; | 44 optional int64 meta_data_read_time = 4; |
44 optional int64 file_data_read_time = 5; | 45 optional int64 file_data_read_time = 5; |
45 optional int64 total_request_time = 6; | 46 optional int64 total_request_time = 6; |
(...skipping 44 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 DeviceInfoSpecifics device_info = 154522; |
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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 // is absent then the whole client (all datatypes) is throttled. | 690 // is absent then the whole client (all datatypes) is throttled. |
689 repeated int32 error_data_type_ids = 5; | 691 repeated int32 error_data_type_ids = 5; |
690 } | 692 } |
691 optional Error error = 13; | 693 optional Error error = 13; |
692 | 694 |
693 // The new per-client state for this client. If set, should be persisted and | 695 // The new per-client state for this client. If set, should be persisted and |
694 // sent with any subsequent ClientToServerMessages. | 696 // sent with any subsequent ClientToServerMessages. |
695 optional ChipBag new_bag_of_chips = 14; | 697 optional ChipBag new_bag_of_chips = 14; |
696 }; | 698 }; |
697 | 699 |
OLD | NEW |