| 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 10 matching lines...) Expand all Loading... |
| 21 optional string guid = 15; | 21 optional string guid = 15; |
| 22 optional string origin = 16; | 22 optional string origin = 16; |
| 23 | 23 |
| 24 // Contact info. | 24 // Contact info. |
| 25 repeated string name_first = 2; | 25 repeated string name_first = 2; |
| 26 repeated string name_middle = 3; | 26 repeated string name_middle = 3; |
| 27 repeated string name_last = 4; | 27 repeated string name_last = 4; |
| 28 repeated string email_address = 5; | 28 repeated string email_address = 5; |
| 29 optional string company_name = 6; | 29 optional string company_name = 6; |
| 30 | 30 |
| 31 // Home address. | 31 // Address. |
| 32 optional string address_home_line1 = 7; | 32 optional string address_home_line1 = 7; |
| 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. |
| 40 optional string address_home_street_address = 17; |
| 41 optional string address_home_sorting_code = 18; |
| 42 optional string address_home_dependent_locality = 19; |
| 43 |
| 39 // Phone. | 44 // Phone. |
| 40 repeated string phone_home_whole_number = 13; | 45 repeated string phone_home_whole_number = 13; |
| 41 | 46 |
| 42 // Deprecated. | 47 // Deprecated. |
| 43 optional string label = 1 [deprecated=true]; | 48 optional string label = 1 [deprecated=true]; |
| 44 optional string phone_fax_whole_number = 14 [deprecated=true]; | 49 optional string phone_fax_whole_number = 14 [deprecated=true]; |
| 45 } | 50 } |
| 46 | 51 |
| 47 message AutofillSpecifics { | 52 message AutofillSpecifics { |
| 48 // If any of these 3 fields are present, then all 3 should be, and it implies | 53 // If any of these 3 fields are present, then all 3 should be, and it implies |
| 49 // that this entity represents a classic autofill object. In this case, | 54 // that this entity represents a classic autofill object. In this case, |
| 50 // none of the autofill++ objects below should be present. | 55 // none of the autofill++ objects below should be present. |
| 51 optional string name = 1; | 56 optional string name = 1; |
| 52 optional string value = 2; | 57 optional string value = 2; |
| 53 repeated int64 usage_timestamp = 3; | 58 repeated int64 usage_timestamp = 3; |
| 54 | 59 |
| 55 // An autofill++ profile object. If present, indicates this entity | 60 // An autofill++ profile object. If present, indicates this entity |
| 56 // represents an AutofillProfile exclusively, and no other fields (such as | 61 // represents an AutofillProfile exclusively, and no other fields (such as |
| 57 // name/value or credit_card) should be present. | 62 // name/value or credit_card) should be present. |
| 58 optional AutofillProfileSpecifics profile = 4; | 63 optional AutofillProfileSpecifics profile = 4; |
| 59 | 64 |
| 60 // Obsolete credit card fields. | 65 // Obsolete credit card fields. |
| 61 // optional bytes deprecated_encrypted_credit_card = 5; | 66 // optional bytes deprecated_encrypted_credit_card = 5; |
| 62 // optional AutofillCreditCardSpecifics deprecated_credit_card = 6; | 67 // optional AutofillCreditCardSpecifics deprecated_credit_card = 6; |
| 63 } | 68 } |
| OLD | NEW |