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