| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // This table contains guids of "trashed" autofill | 115 // This table contains guids of "trashed" autofill |
| 116 // profiles. When a profile is removed its guid is added | 116 // profiles. When a profile is removed its guid is added |
| 117 // to this table so that Sync can perform deferred removal. | 117 // to this table so that Sync can perform deferred removal. |
| 118 // | 118 // |
| 119 // guid The guid string that identifies the trashed profile. | 119 // guid The guid string that identifies the trashed profile. |
| 120 // | 120 // |
| 121 // credit_cards This table contains credit card data added by the user | 121 // credit_cards This table contains credit card data added by the user |
| 122 // with the Autofill dialog. Most of the columns are | 122 // with the Autofill dialog. Most of the columns are |
| 123 // standard entries in a credit card form. | 123 // standard entries in a credit card form. |
| 124 // | 124 // |
| 125 // guid A guid string to uniquely identify the profile. | 125 // guid A guid string to uniquely identify the credit card. |
| 126 // Added in version 31. | 126 // Added in version 31. |
| 127 // name_on_card | 127 // name_on_card |
| 128 // expiration_month | 128 // expiration_month |
| 129 // expiration_year | 129 // expiration_year |
| 130 // card_number_encrypted | 130 // card_number_encrypted |
| 131 // Stores encrypted credit card number. | 131 // Stores encrypted credit card number. |
| 132 // use_count The number of times this card has been used to fill | 132 // use_count The number of times this card has been used to fill |
| 133 // a form. Added in version 61. | 133 // a form. Added in version 61. |
| 134 // use_date The date this card was last used to fill a form, | 134 // use_date The date this card was last used to fill a form, |
| 135 // in time_t. Added in version 61. | 135 // in time_t. Added in version 61. |
| 136 // date_modified The date on which this entry was last modified, in | 136 // date_modified The date on which this entry was last modified, in |
| 137 // time_t. Added in version 30. | 137 // time_t. Added in version 30. |
| 138 // origin The domain of origin for this profile. | 138 // origin The domain of origin for this profile. |
| 139 // Added in version 50. | 139 // Added in version 50. |
| 140 // billing_address_id The guid string that identifies the local profile which |
| 141 // is the billing address for this card. Can be null in the |
| 142 // database, but always returned as an empty string in |
| 143 // CreditCard. Added in version 66. |
| 140 // | 144 // |
| 141 // masked_credit_cards | 145 // masked_credit_cards |
| 142 // This table contains "masked" credit card information | 146 // This table contains "masked" credit card information |
| 143 // about credit cards stored on the server. It consists | 147 // about credit cards stored on the server. It consists |
| 144 // of a short description and an ID, but not full payment | 148 // of a short description and an ID, but not full payment |
| 145 // information. Writing to this table is only done by sync. | 149 // information. Writing to this table is only done by sync. |
| 146 // When a server card is unmasked, it will stay here and | 150 // When a server card is unmasked, it will stay here and |
| 147 // will additionally be added in unmasked_credit_cards. | 151 // will additionally be added in unmasked_credit_cards. |
| 148 // | 152 // |
| 149 // id String assigned by the server to identify this card. | 153 // id String assigned by the server to identify this card. |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); | 405 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); |
| 402 bool MigrateToVersion55MergeAutofillDatesTable(); | 406 bool MigrateToVersion55MergeAutofillDatesTable(); |
| 403 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); | 407 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); |
| 404 bool MigrateToVersion57AddFullNameField(); | 408 bool MigrateToVersion57AddFullNameField(); |
| 405 bool MigrateToVersion60AddServerCards(); | 409 bool MigrateToVersion60AddServerCards(); |
| 406 bool MigrateToVersion61AddUsageStats(); | 410 bool MigrateToVersion61AddUsageStats(); |
| 407 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); | 411 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); |
| 408 bool MigrateToVersion63AddServerRecipientName(); | 412 bool MigrateToVersion63AddServerRecipientName(); |
| 409 bool MigrateToVersion64AddUnmaskDate(); | 413 bool MigrateToVersion64AddUnmaskDate(); |
| 410 bool MigrateToVersion65AddServerMetadataTables(); | 414 bool MigrateToVersion65AddServerMetadataTables(); |
| 415 bool MigrateToVersion66AddCardBillingAddress(); |
| 411 | 416 |
| 412 // Max data length saved in the table, AKA the maximum length allowed for | 417 // Max data length saved in the table, AKA the maximum length allowed for |
| 413 // form data. | 418 // form data. |
| 414 // Copied to components/autofill/ios/browser/resources/autofill_controller.js. | 419 // Copied to components/autofill/ios/browser/resources/autofill_controller.js. |
| 415 static const size_t kMaxDataLength; | 420 static const size_t kMaxDataLength; |
| 416 | 421 |
| 417 private: | 422 private: |
| 418 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); | 423 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); |
| 419 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); | 424 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); |
| 420 FRIEND_TEST_ALL_PREFIXES( | 425 FRIEND_TEST_ALL_PREFIXES( |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 bool InitServerCardMetadataTable(); | 490 bool InitServerCardMetadataTable(); |
| 486 bool InitServerAddressesTable(); | 491 bool InitServerAddressesTable(); |
| 487 bool InitServerAddressMetadataTable(); | 492 bool InitServerAddressMetadataTable(); |
| 488 | 493 |
| 489 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 494 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 490 }; | 495 }; |
| 491 | 496 |
| 492 } // namespace autofill | 497 } // namespace autofill |
| 493 | 498 |
| 494 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 499 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |