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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // full number is downloaded, it will be stored here. | 160 // full number is downloaded, it will be stored here. |
161 // | 161 // |
162 // id Server ID. This can be joined with the id in the | 162 // id Server ID. This can be joined with the id in the |
163 // masked_credit_cards table to get the rest of the data. | 163 // masked_credit_cards table to get the rest of the data. |
164 // card_number_encrypted | 164 // card_number_encrypted |
165 // Full card number, encrypted. | 165 // Full card number, encrypted. |
166 // use_count The number of times this card has been used to fill | 166 // use_count The number of times this card has been used to fill |
167 // a form. Added in version 62. | 167 // a form. Added in version 62. |
168 // use_date The date this card was last used to fill a form, in | 168 // use_date The date this card was last used to fill a form, in |
169 // internal time format (NOT time_t). Added in version 62. | 169 // internal time format (NOT time_t). Added in version 62. |
| 170 // unmask_date The date this card was unmasked in units of |
| 171 // Time::ToInternalValue. Added in version 64. |
170 // | 172 // |
171 // server_addresses This table contains Autofill address data synced from | 173 // server_addresses This table contains Autofill address data synced from |
172 // the wallet server. It's basically the same as the | 174 // the wallet server. It's basically the same as the |
173 // autofill_profiles table but locally immutable. | 175 // autofill_profiles table but locally immutable. |
174 // | 176 // |
175 // id String assigned by the server to identify this address. | 177 // id String assigned by the server to identify this address. |
176 // This is opaque to the client. | 178 // This is opaque to the client. |
177 // recipient_name Added in v63. | 179 // recipient_name Added in v63. |
178 // company_name | 180 // company_name |
179 // street_address The combined lines of the street address. | 181 // street_address The combined lines of the street address. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 361 |
360 // Table migration functions. | 362 // Table migration functions. |
361 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); | 363 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); |
362 bool MigrateToVersion55MergeAutofillDatesTable(); | 364 bool MigrateToVersion55MergeAutofillDatesTable(); |
363 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); | 365 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); |
364 bool MigrateToVersion57AddFullNameField(); | 366 bool MigrateToVersion57AddFullNameField(); |
365 bool MigrateToVersion60AddServerCards(); | 367 bool MigrateToVersion60AddServerCards(); |
366 bool MigrateToVersion61AddUsageStats(); | 368 bool MigrateToVersion61AddUsageStats(); |
367 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); | 369 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); |
368 bool MigrateToVersion63AddServerRecipientName(); | 370 bool MigrateToVersion63AddServerRecipientName(); |
| 371 bool MigrateToVersion64AddUnmaskDate(); |
369 | 372 |
370 // Max data length saved in the table; | 373 // Max data length saved in the table; |
371 static const size_t kMaxDataLength; | 374 static const size_t kMaxDataLength; |
372 | 375 |
373 private: | 376 private: |
374 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); | 377 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); |
375 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); | 378 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); |
376 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); | 379 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); |
377 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); | 380 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); |
378 FRIEND_TEST_ALL_PREFIXES( | 381 FRIEND_TEST_ALL_PREFIXES( |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 // created (on the UI thread), and cached here so that it can be used for | 445 // created (on the UI thread), and cached here so that it can be used for |
443 // migrations (on the DB thread). | 446 // migrations (on the DB thread). |
444 std::string app_locale_; | 447 std::string app_locale_; |
445 | 448 |
446 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 449 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
447 }; | 450 }; |
448 | 451 |
449 } // namespace autofill | 452 } // namespace autofill |
450 | 453 |
451 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 454 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
OLD | NEW |