| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // zipcode | 62 // zipcode |
| 63 // sorting_code Similar to the zipcode column, but used for businesses | 63 // sorting_code Similar to the zipcode column, but used for businesses |
| 64 // or organizations that might not be geographically | 64 // or organizations that might not be geographically |
| 65 // contiguous. The canonical example is CEDEX in France. | 65 // contiguous. The canonical example is CEDEX in France. |
| 66 // Added in version 54. | 66 // Added in version 54. |
| 67 // country_code | 67 // country_code |
| 68 // date_modified The date on which this profile was last modified. | 68 // date_modified The date on which this profile was last modified. |
| 69 // Added in version 30. | 69 // Added in version 30. |
| 70 // origin The domain of origin for this profile. | 70 // origin The domain of origin for this profile. |
| 71 // Added in version 50. | 71 // Added in version 50. |
| 72 // language_code The BCP 47 language code used to format the address for |
| 73 // display. For example, a JP address with "ja" language |
| 74 // code starts with the postal code, but a JP address with |
| 75 // "ja-latn" language code starts with the recipient name. |
| 76 // Added in version 56. |
| 72 // | 77 // |
| 73 // autofill_profile_names | 78 // autofill_profile_names |
| 74 // This table contains the multi-valued name fields | 79 // This table contains the multi-valued name fields |
| 75 // associated with a profile. | 80 // associated with a profile. |
| 76 // | 81 // |
| 77 // guid The guid string that identifies the profile to which | 82 // guid The guid string that identifies the profile to which |
| 78 // the name belongs. | 83 // the name belongs. |
| 79 // first_name | 84 // first_name |
| 80 // middle_name | 85 // middle_name |
| 81 // last_name | 86 // last_name |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 bool MigrateToVersion30AddDateModifed(); | 276 bool MigrateToVersion30AddDateModifed(); |
| 272 bool MigrateToVersion31AddGUIDToCreditCardsAndProfiles(); | 277 bool MigrateToVersion31AddGUIDToCreditCardsAndProfiles(); |
| 273 bool MigrateToVersion32UpdateProfilesAndCreditCards(); | 278 bool MigrateToVersion32UpdateProfilesAndCreditCards(); |
| 274 bool MigrateToVersion33ProfilesBasedOnFirstName(); | 279 bool MigrateToVersion33ProfilesBasedOnFirstName(); |
| 275 bool MigrateToVersion34ProfilesBasedOnCountryCode(); | 280 bool MigrateToVersion34ProfilesBasedOnCountryCode(); |
| 276 bool MigrateToVersion35GreatBritainCountryCodes(); | 281 bool MigrateToVersion35GreatBritainCountryCodes(); |
| 277 bool MigrateToVersion37MergeAndCullOlderProfiles(); | 282 bool MigrateToVersion37MergeAndCullOlderProfiles(); |
| 278 bool MigrateToVersion51AddOriginColumn(); | 283 bool MigrateToVersion51AddOriginColumn(); |
| 279 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); | 284 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); |
| 280 bool MigrateToVersion55MergeAutofillDatesTable(); | 285 bool MigrateToVersion55MergeAutofillDatesTable(); |
| 286 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); |
| 281 | 287 |
| 282 // Max data length saved in the table; | 288 // Max data length saved in the table; |
| 283 static const size_t kMaxDataLength; | 289 static const size_t kMaxDataLength; |
| 284 | 290 |
| 285 private: | 291 private: |
| 286 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); | 292 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); |
| 287 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); | 293 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); |
| 288 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); | 294 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); |
| 289 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); | 295 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); |
| 290 FRIEND_TEST_ALL_PREFIXES( | 296 FRIEND_TEST_ALL_PREFIXES( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // created (on the UI thread), and cached here so that it can be used for | 357 // created (on the UI thread), and cached here so that it can be used for |
| 352 // migrations (on the DB thread). | 358 // migrations (on the DB thread). |
| 353 std::string app_locale_; | 359 std::string app_locale_; |
| 354 | 360 |
| 355 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 361 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 356 }; | 362 }; |
| 357 | 363 |
| 358 } // namespace autofill | 364 } // namespace autofill |
| 359 | 365 |
| 360 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 366 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |