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_list_specifics.proto"; | 17 import "app_list_specifics.proto"; |
18 import "app_notification_specifics.proto"; | 18 import "app_notification_specifics.proto"; |
19 import "app_setting_specifics.proto"; | 19 import "app_setting_specifics.proto"; |
20 import "app_specifics.proto"; | 20 import "app_specifics.proto"; |
21 import "article_specifics.proto"; | 21 import "article_specifics.proto"; |
| 22 import "attachments.proto"; |
22 import "autofill_specifics.proto"; | 23 import "autofill_specifics.proto"; |
23 import "bookmark_specifics.proto"; | 24 import "bookmark_specifics.proto"; |
24 import "client_commands.proto"; | 25 import "client_commands.proto"; |
25 import "client_debug_info.proto"; | 26 import "client_debug_info.proto"; |
26 import "device_info_specifics.proto"; | 27 import "device_info_specifics.proto"; |
27 import "dictionary_specifics.proto"; | 28 import "dictionary_specifics.proto"; |
28 import "encryption.proto"; | 29 import "encryption.proto"; |
29 import "experiments_specifics.proto"; | 30 import "experiments_specifics.proto"; |
30 import "extension_setting_specifics.proto"; | 31 import "extension_setting_specifics.proto"; |
31 import "extension_specifics.proto"; | 32 import "extension_specifics.proto"; |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 // that do not set this field. See the comments on | 360 // that do not set this field. See the comments on |
360 // |server_position_in_parent| for more information on how this is handled. | 361 // |server_position_in_parent| for more information on how this is handled. |
361 // | 362 // |
362 // This field will not be set for items whose type ignores positioning. | 363 // This field will not be set for items whose type ignores positioning. |
363 // Clients should not attempt to read this field on the receipt of an item of | 364 // Clients should not attempt to read this field on the receipt of an item of |
364 // a type that ignores positioning. | 365 // a type that ignores positioning. |
365 // | 366 // |
366 // Refer to its definition in unique_position.proto for more information about | 367 // Refer to its definition in unique_position.proto for more information about |
367 // its internal representation. | 368 // its internal representation. |
368 optional UniquePosition unique_position = 25; | 369 optional UniquePosition unique_position = 25; |
| 370 |
| 371 // Attachment ids of attachments associated with this SyncEntity. |
| 372 repeated AttachmentIdProto attachment_id = 26; |
369 }; | 373 }; |
370 | 374 |
371 // This message contains diagnostic information used to correlate | 375 // This message contains diagnostic information used to correlate |
372 // commit-related traffic with extensions-related mutations to the | 376 // commit-related traffic with extensions-related mutations to the |
373 // data models in chromium. It plays no functional role in | 377 // data models in chromium. It plays no functional role in |
374 // processing this CommitMessage. | 378 // processing this CommitMessage. |
375 message ChromiumExtensionsActivity { | 379 message ChromiumExtensionsActivity { |
376 // The human-readable ID identifying the extension responsible | 380 // The human-readable ID identifying the extension responsible |
377 // for the traffic reported in this ChromiumExtensionsActivity. | 381 // for the traffic reported in this ChromiumExtensionsActivity. |
378 optional string extension_id = 1; | 382 optional string extension_id = 1; |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 // Currently only meaningful if |error_type| is throttled. If this field | 927 // Currently only meaningful if |error_type| is throttled. If this field |
924 // is absent then the whole client (all datatypes) is throttled. | 928 // is absent then the whole client (all datatypes) is throttled. |
925 repeated int32 error_data_type_ids = 5; | 929 repeated int32 error_data_type_ids = 5; |
926 } | 930 } |
927 optional Error error = 13; | 931 optional Error error = 13; |
928 | 932 |
929 // The new per-client state for this client. If set, should be persisted and | 933 // The new per-client state for this client. If set, should be persisted and |
930 // sent with any subsequent ClientToServerMessages. | 934 // sent with any subsequent ClientToServerMessages. |
931 optional ChipBag new_bag_of_chips = 14; | 935 optional ChipBag new_bag_of_chips = 14; |
932 }; | 936 }; |
933 | |
OLD | NEW |