| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // See bug http://crbug.com/6111 | 252 // See bug http://crbug.com/6111 |
| 253 bool ClearAutofillEmptyValueElements(); | 253 bool ClearAutofillEmptyValueElements(); |
| 254 | 254 |
| 255 // Retrieves all profiles in the database that have been deleted since last | 255 // Retrieves all profiles in the database that have been deleted since last |
| 256 // "empty" of the trash. | 256 // "empty" of the trash. |
| 257 bool AddAutofillGUIDToTrash(const std::string& guid); | 257 bool AddAutofillGUIDToTrash(const std::string& guid); |
| 258 | 258 |
| 259 // Clear all profiles. | 259 // Clear all profiles. |
| 260 bool ClearAutofillProfiles(); | 260 bool ClearAutofillProfiles(); |
| 261 | 261 |
| 262 // Table migration functions. |
| 263 bool MigrateToVersion23AddCardNumberEncryptedColumn(); |
| 264 bool MigrateToVersion24CleanupOversizedStringFields(); |
| 265 bool MigrateToVersion27UpdateLegacyCreditCards(); |
| 266 bool MigrateToVersion30AddDateModifed(); |
| 267 bool MigrateToVersion31AddGUIDToCreditCardsAndProfiles(); |
| 268 bool MigrateToVersion32UpdateProfilesAndCreditCards(); |
| 269 bool MigrateToVersion33ProfilesBasedOnFirstName(); |
| 270 bool MigrateToVersion34ProfilesBasedOnCountryCode(); |
| 271 bool MigrateToVersion35GreatBritainCountryCodes(); |
| 272 bool MigrateToVersion36MergeAndCullOlderProfiles(); |
| 273 |
| 262 private: | 274 private: |
| 263 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); | 275 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); |
| 264 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); | 276 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); |
| 265 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); | 277 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); |
| 266 | 278 |
| 267 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); | 279 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); |
| 268 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddFormFieldValues); | 280 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddFormFieldValues); |
| 269 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfile); | 281 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfile); |
| 270 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, UpdateAutofillProfile); | 282 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, UpdateAutofillProfile); |
| 271 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfileTrash); | 283 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfileTrash); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 bool InitProfilesTable(); | 318 bool InitProfilesTable(); |
| 307 bool InitProfileNamesTable(); | 319 bool InitProfileNamesTable(); |
| 308 bool InitProfileEmailsTable(); | 320 bool InitProfileEmailsTable(); |
| 309 bool InitProfilePhonesTable(); | 321 bool InitProfilePhonesTable(); |
| 310 bool InitProfileTrashTable(); | 322 bool InitProfileTrashTable(); |
| 311 | 323 |
| 312 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 324 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 313 }; | 325 }; |
| 314 | 326 |
| 315 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 327 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |