OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 datatype extension for autofill. | 5 // Sync protocol datatype extension for autofill. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 option retain_unknown_fields = true; | 10 option retain_unknown_fields = true; |
11 | 11 |
12 package sync_pb; | 12 package sync_pb; |
13 | 13 |
14 import "sync.proto"; | 14 import "sync.proto"; |
15 | 15 |
16 // Properties of autofill sync objects. | 16 // Properties of autofill sync objects. |
17 | 17 |
18 // An AutofillProfile. | 18 // An AutofillProfile. |
19 message AutofillProfileSpecifics { | 19 message AutofillProfileSpecifics { |
20 // User-defined label. | 20 // User-defined label. |
21 optional string label = 1; | 21 optional string label = 1; |
| 22 |
| 23 optional string guid = 15; |
22 | 24 |
23 // Contact info. | 25 // Contact info. |
24 optional string name_first = 2; | 26 optional string name_first = 2; |
25 optional string name_middle = 3; | 27 optional string name_middle = 3; |
26 optional string name_last = 4; | 28 optional string name_last = 4; |
27 optional string email_address = 5; | 29 optional string email_address = 5; |
28 optional string company_name = 6; | 30 optional string company_name = 6; |
29 | 31 |
30 // Home address. | 32 // Home address. |
31 optional string address_home_line1 = 7; | 33 optional string address_home_line1 = 7; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // |credit_card| in that case. | 89 // |credit_card| in that case. |
88 optional bytes encrypted_credit_card = 5; | 90 optional bytes encrypted_credit_card = 5; |
89 | 91 |
90 // If encryption for autofill++ is not enabled, this field stores the | 92 // If encryption for autofill++ is not enabled, this field stores the |
91 // AutofillCreditCardSpecifics [instead of |encrypted_credit_card|]. | 93 // AutofillCreditCardSpecifics [instead of |encrypted_credit_card|]. |
92 optional AutofillCreditCardSpecifics credit_card = 6; | 94 optional AutofillCreditCardSpecifics credit_card = 6; |
93 } | 95 } |
94 | 96 |
95 extend EntitySpecifics { | 97 extend EntitySpecifics { |
96 optional AutofillSpecifics autofill = 31729; | 98 optional AutofillSpecifics autofill = 31729; |
| 99 optional AutofillProfileSpecifics autofill_profile = 63951; |
97 } | 100 } |
OLD | NEW |