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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 optional WalletInfoType type = 1; | 165 optional WalletInfoType type = 1; |
166 | 166 |
167 // This field exists if and only if the "type" field equals to | 167 // This field exists if and only if the "type" field equals to |
168 // MASKED_CREDIT_CARD. | 168 // MASKED_CREDIT_CARD. |
169 optional WalletMaskedCreditCard masked_card = 2; | 169 optional WalletMaskedCreditCard masked_card = 2; |
170 | 170 |
171 // This field exists if and only if the "type" field equals to ADDRESS. | 171 // This field exists if and only if the "type" field equals to ADDRESS. |
172 optional WalletPostalAddress address = 3; | 172 optional WalletPostalAddress address = 3; |
173 } | 173 } |
| 174 |
| 175 // Wallet card and address usage information that can be synced. |
| 176 message WalletMetadataSpecifics { |
| 177 enum Type { |
| 178 UNKNOWN = 0; |
| 179 CARD = 1; |
| 180 ADDRESS = 2; |
| 181 } |
| 182 |
| 183 // The type of the Wallet metadata. |
| 184 optional Type type = 1; |
| 185 |
| 186 // Unique ID string of the corresponding Wallet data. |
| 187 // For Wallet cards, this value is server generated and opaque to Chrome. |
| 188 // For Wallet addresses, this is a SHA1 hash of the following fields: |
| 189 // |
| 190 // - First name |
| 191 // - Middle name |
| 192 // - Last name |
| 193 // - Company name |
| 194 // - Street address |
| 195 // - Dependent locality |
| 196 // - City |
| 197 // - State |
| 198 // - Zip code |
| 199 // - Sorting code |
| 200 // - Country |
| 201 // - Phone numbers |
| 202 // |
| 203 // Finally, Chrome appends the address language code to the end of the hash. |
| 204 optional string id = 2; |
| 205 |
| 206 // The number of times that this Wallet card or address was used. |
| 207 optional int64 use_count = 3; |
| 208 |
| 209 // The last use date of this Wallet card or address. Measured in microseconds |
| 210 // since the Windows epoch (1601). |
| 211 optional int64 use_date = 4; |
| 212 } |
OLD | NEW |