OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // This is opaque to the client. | 159 // This is opaque to the client. |
160 // status Server's status of this card. | 160 // status Server's status of this card. |
161 // TODO(brettw) define constants for this. | 161 // TODO(brettw) define constants for this. |
162 // name_on_card | 162 // name_on_card |
163 // network Issuer network of the card. For example, "VISA". Renamed | 163 // network Issuer network of the card. For example, "VISA". Renamed |
164 // from "type" in version 72. | 164 // from "type" in version 72. |
165 // last_four Last four digits of the card number. For de-duping | 165 // last_four Last four digits of the card number. For de-duping |
166 // with locally stored cards and generating descriptions. | 166 // with locally stored cards and generating descriptions. |
167 // exp_month Expiration month: 1-12 | 167 // exp_month Expiration month: 1-12 |
168 // exp_year Four-digit year: 2017 | 168 // exp_year Four-digit year: 2017 |
| 169 // bank_name Issuer bank name of the credit card. |
169 // | 170 // |
170 // unmasked_credit_cards | 171 // unmasked_credit_cards |
171 // When a masked credit credit card is unmasked and the | 172 // When a masked credit credit card is unmasked and the |
172 // full number is downloaded or when the full number is | 173 // full number is downloaded or when the full number is |
173 // available upon saving card to server, it will be stored | 174 // available upon saving card to server, it will be stored |
174 // here. | 175 // here. |
175 // | 176 // |
176 // id Server ID. This can be joined with the id in the | 177 // id Server ID. This can be joined with the id in the |
177 // masked_credit_cards table to get the rest of the data. | 178 // masked_credit_cards table to get the rest of the data. |
178 // card_number_encrypted | 179 // card_number_encrypted |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 bool MigrateToVersion61AddUsageStats(); | 458 bool MigrateToVersion61AddUsageStats(); |
458 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); | 459 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); |
459 bool MigrateToVersion63AddServerRecipientName(); | 460 bool MigrateToVersion63AddServerRecipientName(); |
460 bool MigrateToVersion64AddUnmaskDate(); | 461 bool MigrateToVersion64AddUnmaskDate(); |
461 bool MigrateToVersion65AddServerMetadataTables(); | 462 bool MigrateToVersion65AddServerMetadataTables(); |
462 bool MigrateToVersion66AddCardBillingAddress(); | 463 bool MigrateToVersion66AddCardBillingAddress(); |
463 bool MigrateToVersion67AddMaskedCardBillingAddress(); | 464 bool MigrateToVersion67AddMaskedCardBillingAddress(); |
464 bool MigrateToVersion70AddSyncMetadata(); | 465 bool MigrateToVersion70AddSyncMetadata(); |
465 bool MigrateToVersion71AddHasConvertedAndBillingAddressIdMetadata(); | 466 bool MigrateToVersion71AddHasConvertedAndBillingAddressIdMetadata(); |
466 bool MigrateToVersion72RenameCardTypeToIssuerNetwork(); | 467 bool MigrateToVersion72RenameCardTypeToIssuerNetwork(); |
| 468 bool MigrateToVersion73AddMaskedCardBankName(); |
467 | 469 |
468 // Max data length saved in the table, AKA the maximum length allowed for | 470 // Max data length saved in the table, AKA the maximum length allowed for |
469 // form data. | 471 // form data. |
470 // Copied to components/autofill/ios/browser/resources/autofill_controller.js. | 472 // Copied to components/autofill/ios/browser/resources/autofill_controller.js. |
471 static const size_t kMaxDataLength; | 473 static const size_t kMaxDataLength; |
472 | 474 |
473 private: | 475 private: |
474 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); | 476 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); |
475 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); | 477 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); |
476 FRIEND_TEST_ALL_PREFIXES( | 478 FRIEND_TEST_ALL_PREFIXES( |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 bool InitModelTypeStateTable(); | 565 bool InitModelTypeStateTable(); |
564 | 566 |
565 std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor_; | 567 std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor_; |
566 | 568 |
567 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 569 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
568 }; | 570 }; |
569 | 571 |
570 } // namespace autofill | 572 } // namespace autofill |
571 | 573 |
572 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 574 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
OLD | NEW |