Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/browser/webdata/autofill_table.h

Issue 6677124: Move migration code out of WebDatabase and into table-specific classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 AddCardNumberEncryptedColumnForVersion23();
dhollowa 2011/04/04 16:13:20 How about names like |MigrateToVersion23EncryptedC
Bons 2011/04/05 11:05:13 Done.
264 bool CleanupOversizedStringFieldsForVersion24();
265 bool UpdateLegacyCreditCardsForVersion27();
266 bool AddDateModifedForVersion30();
267 bool AddGUIDToCreditCardsAndProfilesForVersion31();
268 bool UpdateProfilesAndCreditCardsForVersion32();
269 bool UpdateProfilesBasedOnFirstNameForVersion33();
270 bool UpdatesProfilesBasedOnCountryCodeForVersion34();
271 bool CorrectGreatBritainCountryCodesForVersion35();
272 bool MergeAndCullOlderProfilesForVersion36();
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/webdata/autofill_table.cc » ('j') | chrome/browser/webdata/autofill_table.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698