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 datatype extension for autofill. | 5 // Sync protocol datatype extension for autofill. |
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 22 matching lines...) Expand all Loading... |
33 optional string address_home_line2 = 8; | 33 optional string address_home_line2 = 8; |
34 optional string address_home_city = 9; | 34 optional string address_home_city = 9; |
35 optional string address_home_state = 10; | 35 optional string address_home_state = 10; |
36 optional string address_home_zip = 11; | 36 optional string address_home_zip = 11; |
37 optional string address_home_country = 12; | 37 optional string address_home_country = 12; |
38 | 38 |
39 // Additional address fields for i18n. | 39 // Additional address fields for i18n. |
40 optional string address_home_street_address = 17; | 40 optional string address_home_street_address = 17; |
41 optional string address_home_sorting_code = 18; | 41 optional string address_home_sorting_code = 18; |
42 optional string address_home_dependent_locality = 19; | 42 optional string address_home_dependent_locality = 19; |
| 43 optional string address_home_language_code = 20; |
43 | 44 |
44 // Phone. | 45 // Phone. |
45 repeated string phone_home_whole_number = 13; | 46 repeated string phone_home_whole_number = 13; |
46 | 47 |
47 // Deprecated. | 48 // Deprecated. |
48 optional string label = 1 [deprecated=true]; | 49 optional string label = 1 [deprecated=true]; |
49 optional string phone_fax_whole_number = 14 [deprecated=true]; | 50 optional string phone_fax_whole_number = 14 [deprecated=true]; |
50 } | 51 } |
51 | 52 |
52 message AutofillSpecifics { | 53 message AutofillSpecifics { |
53 // If any of these 3 fields are present, then all 3 should be, and it implies | 54 // If any of these 3 fields are present, then all 3 should be, and it implies |
54 // that this entity represents a classic autofill object. In this case, | 55 // that this entity represents a classic autofill object. In this case, |
55 // none of the autofill++ objects below should be present. | 56 // none of the autofill++ objects below should be present. |
56 optional string name = 1; | 57 optional string name = 1; |
57 optional string value = 2; | 58 optional string value = 2; |
58 repeated int64 usage_timestamp = 3; | 59 repeated int64 usage_timestamp = 3; |
59 | 60 |
60 // An autofill++ profile object. If present, indicates this entity | 61 // An autofill++ profile object. If present, indicates this entity |
61 // represents an AutofillProfile exclusively, and no other fields (such as | 62 // represents an AutofillProfile exclusively, and no other fields (such as |
62 // name/value or credit_card) should be present. | 63 // name/value or credit_card) should be present. |
63 optional AutofillProfileSpecifics profile = 4; | 64 optional AutofillProfileSpecifics profile = 4; |
64 | 65 |
65 // Obsolete credit card fields. | 66 // Obsolete credit card fields. |
66 // optional bytes deprecated_encrypted_credit_card = 5; | 67 // optional bytes deprecated_encrypted_credit_card = 5; |
67 // optional AutofillCreditCardSpecifics deprecated_credit_card = 6; | 68 // optional AutofillCreditCardSpecifics deprecated_credit_card = 6; |
68 } | 69 } |
OLD | NEW |