| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 bool EmptyAutofillProfilesTrash(); | 351 bool EmptyAutofillProfilesTrash(); |
| 352 | 352 |
| 353 // Retrieves all profiles in the database that have been deleted since last | 353 // Retrieves all profiles in the database that have been deleted since last |
| 354 // "empty" of the trash. | 354 // "empty" of the trash. |
| 355 bool AddAutofillGUIDToTrash(const std::string& guid); | 355 bool AddAutofillGUIDToTrash(const std::string& guid); |
| 356 | 356 |
| 357 // Clear all profiles. | 357 // Clear all profiles. |
| 358 bool ClearAutofillProfiles(); | 358 bool ClearAutofillProfiles(); |
| 359 | 359 |
| 360 // Table migration functions. | 360 // Table migration functions. |
| 361 // Removes empty values for autofill that were incorrectly stored in the DB | |
| 362 // See bug http://crbug.com/6111 | |
| 363 bool MigrateToVersion22ClearAutofillEmptyValueElements(); | |
| 364 bool MigrateToVersion23AddCardNumberEncryptedColumn(); | |
| 365 bool MigrateToVersion24CleanupOversizedStringFields(); | |
| 366 bool MigrateToVersion27UpdateLegacyCreditCards(); | |
| 367 bool MigrateToVersion30AddDateModifed(); | |
| 368 bool MigrateToVersion31AddGUIDToCreditCardsAndProfiles(); | |
| 369 bool MigrateToVersion32UpdateProfilesAndCreditCards(); | |
| 370 bool MigrateToVersion33ProfilesBasedOnFirstName(); | |
| 371 bool MigrateToVersion34ProfilesBasedOnCountryCode(); | |
| 372 bool MigrateToVersion35GreatBritainCountryCodes(); | |
| 373 bool MigrateToVersion37MergeAndCullOlderProfiles(); | |
| 374 bool MigrateToVersion51AddOriginColumn(); | |
| 375 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); | 361 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); |
| 376 bool MigrateToVersion55MergeAutofillDatesTable(); | 362 bool MigrateToVersion55MergeAutofillDatesTable(); |
| 377 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); | 363 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); |
| 378 bool MigrateToVersion57AddFullNameField(); | 364 bool MigrateToVersion57AddFullNameField(); |
| 379 bool MigrateToVersion60AddServerCards(); | 365 bool MigrateToVersion60AddServerCards(); |
| 380 bool MigrateToVersion61AddUsageStats(); | 366 bool MigrateToVersion61AddUsageStats(); |
| 381 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); | 367 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); |
| 382 | 368 |
| 383 // Max data length saved in the table; | 369 // Max data length saved in the table; |
| 384 static const size_t kMaxDataLength; | 370 static const size_t kMaxDataLength; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 // created (on the UI thread), and cached here so that it can be used for | 441 // created (on the UI thread), and cached here so that it can be used for |
| 456 // migrations (on the DB thread). | 442 // migrations (on the DB thread). |
| 457 std::string app_locale_; | 443 std::string app_locale_; |
| 458 | 444 |
| 459 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 445 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 460 }; | 446 }; |
| 461 | 447 |
| 462 } // namespace autofill | 448 } // namespace autofill |
| 463 | 449 |
| 464 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 450 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |