| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 company_name = 6; | 33 optional string company_name = 6; |
| 34 | 34 |
| 35 // Home address. | 35 // Home address. |
| 36 optional string address_home_line1 = 7; | 36 optional string address_home_line1 = 7; |
| 37 optional string address_home_line2 = 8; | 37 optional string address_home_line2 = 8; |
| 38 optional string address_home_city = 9; | 38 optional string address_home_city = 9; |
| 39 optional string address_home_state = 10; | 39 optional string address_home_state = 10; |
| 40 optional string address_home_zip = 11; | 40 optional string address_home_zip = 11; |
| 41 optional string address_home_country = 12; | 41 optional string address_home_country = 12; |
| 42 | 42 |
| 43 // Phone + fax. | 43 // Phone. |
| 44 optional string phone_home_whole_number = 13; | 44 optional string phone_home_whole_number = 13; |
| 45 |
| 46 // Deprecated. |
| 47 // TODO(jhawkins): Determine if this is safe to remove. |
| 45 optional string phone_fax_whole_number = 14; | 48 optional string phone_fax_whole_number = 14; |
| 46 } | 49 } |
| 47 | 50 |
| 48 message AutofillSpecifics { | 51 message AutofillSpecifics { |
| 49 // If any of these 3 fields are present, then all 3 should be, and it implies | 52 // If any of these 3 fields are present, then all 3 should be, and it implies |
| 50 // that this entity represents a classic autofill object. In this case, | 53 // that this entity represents a classic autofill object. In this case, |
| 51 // none of the autofill++ objects below should be present. | 54 // none of the autofill++ objects below should be present. |
| 52 optional string name = 1; | 55 optional string name = 1; |
| 53 optional string value = 2; | 56 optional string value = 2; |
| 54 repeated int64 usage_timestamp = 3; | 57 repeated int64 usage_timestamp = 3; |
| 55 | 58 |
| 56 // An autofill++ profile object. If present, indicates this entity | 59 // An autofill++ profile object. If present, indicates this entity |
| 57 // represents an AutofillProfile exclusively, and no other fields (such as | 60 // represents an AutofillProfile exclusively, and no other fields (such as |
| 58 // name/value or credit_card) should be present. | 61 // name/value or credit_card) should be present. |
| 59 optional AutofillProfileSpecifics profile = 4; | 62 optional AutofillProfileSpecifics profile = 4; |
| 60 | 63 |
| 61 // Obsolete credit card fields. | 64 // Obsolete credit card fields. |
| 62 // optional bytes deprecated_encrypted_credit_card = 5; | 65 // optional bytes deprecated_encrypted_credit_card = 5; |
| 63 // optional AutofillCreditCardSpecifics deprecated_credit_card = 6; | 66 // optional AutofillCreditCardSpecifics deprecated_credit_card = 6; |
| 64 } | 67 } |
| 65 | 68 |
| 66 extend EntitySpecifics { | 69 extend EntitySpecifics { |
| 67 optional AutofillSpecifics autofill = 31729; | 70 optional AutofillSpecifics autofill = 31729; |
| 68 optional AutofillProfileSpecifics autofill_profile = 63951; | 71 optional AutofillProfileSpecifics autofill_profile = 63951; |
| 69 } | 72 } |
| OLD | NEW |