| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // | 170 // |
| 171 // server_addresses This table contains Autofill address data synced from | 171 // server_addresses This table contains Autofill address data synced from |
| 172 // the wallet server. It's basically the same as the | 172 // the wallet server. It's basically the same as the |
| 173 // autofill_profiles table but locally immutable. | 173 // autofill_profiles table but locally immutable. |
| 174 // | 174 // |
| 175 // id String assigned by the server to identify this address. | 175 // id String assigned by the server to identify this address. |
| 176 // This is opaque to the client. | 176 // This is opaque to the client. |
| 177 // recipient_name Added in v63. |
| 177 // company_name | 178 // company_name |
| 178 // street_address The combined lines of the street address. | 179 // street_address The combined lines of the street address. |
| 179 // address_1 Also known as "administrative area". This is normally | 180 // address_1 Also known as "administrative area". This is normally |
| 180 // the state or province in most countries. | 181 // the state or province in most countries. |
| 181 // address_2 Also known as "locality". In the US this is the city. | 182 // address_2 Also known as "locality". In the US this is the city. |
| 182 // address_3 A sub-classification beneath the city, e.g. an | 183 // address_3 A sub-classification beneath the city, e.g. an |
| 183 // inner-city district or suburb. Also known as | 184 // inner-city district or suburb. Also known as |
| 184 // "dependent_locality". | 185 // "dependent_locality". |
| 185 // address_4 Used in certain countries. Also known as | 186 // address_4 Used in certain countries. Also known as |
| 186 // "sub_dependent_locality". | 187 // "sub_dependent_locality". |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 bool ClearAutofillProfiles(); | 359 bool ClearAutofillProfiles(); |
| 359 | 360 |
| 360 // Table migration functions. | 361 // Table migration functions. |
| 361 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); | 362 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); |
| 362 bool MigrateToVersion55MergeAutofillDatesTable(); | 363 bool MigrateToVersion55MergeAutofillDatesTable(); |
| 363 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); | 364 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); |
| 364 bool MigrateToVersion57AddFullNameField(); | 365 bool MigrateToVersion57AddFullNameField(); |
| 365 bool MigrateToVersion60AddServerCards(); | 366 bool MigrateToVersion60AddServerCards(); |
| 366 bool MigrateToVersion61AddUsageStats(); | 367 bool MigrateToVersion61AddUsageStats(); |
| 367 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); | 368 bool MigrateToVersion62AddUsageStatsForUnmaskedCards(); |
| 369 bool MigrateToVersion63AddServerRecipientName(); |
| 368 | 370 |
| 369 // Max data length saved in the table; | 371 // Max data length saved in the table; |
| 370 static const size_t kMaxDataLength; | 372 static const size_t kMaxDataLength; |
| 371 | 373 |
| 372 private: | 374 private: |
| 373 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); | 375 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); |
| 374 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); | 376 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); |
| 375 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); | 377 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); |
| 376 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); | 378 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); |
| 377 FRIEND_TEST_ALL_PREFIXES( | 379 FRIEND_TEST_ALL_PREFIXES( |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 // created (on the UI thread), and cached here so that it can be used for | 443 // created (on the UI thread), and cached here so that it can be used for |
| 442 // migrations (on the DB thread). | 444 // migrations (on the DB thread). |
| 443 std::string app_locale_; | 445 std::string app_locale_; |
| 444 | 446 |
| 445 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 447 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 446 }; | 448 }; |
| 447 | 449 |
| 448 } // namespace autofill | 450 } // namespace autofill |
| 449 | 451 |
| 450 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 452 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |