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. | |
170 // | 169 // |
171 // unmasked_credit_cards | 170 // unmasked_credit_cards |
172 // When a masked credit credit card is unmasked and the | 171 // When a masked credit credit card is unmasked and the |
173 // full number is downloaded or when the full number is | 172 // full number is downloaded or when the full number is |
174 // available upon saving card to server, it will be stored | 173 // available upon saving card to server, it will be stored |
175 // here. | 174 // here. |
176 // | 175 // |
177 // id Server ID. This can be joined with the id in the | 176 // id Server ID. This can be joined with the id in the |
178 // masked_credit_cards table to get the rest of the data. | 177 // masked_credit_cards table to get the rest of the data. |
179 // card_number_encrypted | 178 // card_number_encrypted |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 bool MigrateToVersion61AddUsageStats(); | 457 bool MigrateToVersion61AddUsageStats(); |
459 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); | 458 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); |
460 bool MigrateToVersion63AddServerRecipientName(); | 459 bool MigrateToVersion63AddServerRecipientName(); |
461 bool MigrateToVersion64AddUnmaskDate(); | 460 bool MigrateToVersion64AddUnmaskDate(); |
462 bool MigrateToVersion65AddServerMetadataTables(); | 461 bool MigrateToVersion65AddServerMetadataTables(); |
463 bool MigrateToVersion66AddCardBillingAddress(); | 462 bool MigrateToVersion66AddCardBillingAddress(); |
464 bool MigrateToVersion67AddMaskedCardBillingAddress(); | 463 bool MigrateToVersion67AddMaskedCardBillingAddress(); |
465 bool MigrateToVersion70AddSyncMetadata(); | 464 bool MigrateToVersion70AddSyncMetadata(); |
466 bool MigrateToVersion71AddHasConvertedAndBillingAddressIdMetadata(); | 465 bool MigrateToVersion71AddHasConvertedAndBillingAddressIdMetadata(); |
467 bool MigrateToVersion72RenameCardTypeToIssuerNetwork(); | 466 bool MigrateToVersion72RenameCardTypeToIssuerNetwork(); |
468 bool MigrateToVersion73AddMaskedCardBankName(); | |
469 | 467 |
470 // Max data length saved in the table, AKA the maximum length allowed for | 468 // Max data length saved in the table, AKA the maximum length allowed for |
471 // form data. | 469 // form data. |
472 // Copied to components/autofill/ios/browser/resources/autofill_controller.js. | 470 // Copied to components/autofill/ios/browser/resources/autofill_controller.js. |
473 static const size_t kMaxDataLength; | 471 static const size_t kMaxDataLength; |
474 | 472 |
475 private: | 473 private: |
476 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); | 474 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); |
477 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); | 475 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); |
478 FRIEND_TEST_ALL_PREFIXES( | 476 FRIEND_TEST_ALL_PREFIXES( |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 bool InitModelTypeStateTable(); | 563 bool InitModelTypeStateTable(); |
566 | 564 |
567 std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor_; | 565 std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor_; |
568 | 566 |
569 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 567 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
570 }; | 568 }; |
571 | 569 |
572 } // namespace autofill | 570 } // namespace autofill |
573 | 571 |
574 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 572 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
OLD | NEW |