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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_table.h

Issue 212873003: Store the language code for the address in autofill profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // A sub-classification beneath the city, e.g. an 58 // A sub-classification beneath the city, e.g. an
59 // inner-city district or suburb. Added in version 54. 59 // inner-city district or suburb. Added in version 54.
60 // city 60 // city
61 // state 61 // state
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 // language_code The BCP 47 language code used to format the address for
69 // display. For example, a JP address with "ja" language
70 // code starts with the postal code, but a JP address with
71 // "ja-latn" language code starts with the recipient name.
72 // Added in version 56.
Scott Hess - ex-Googler 2014/03/31 17:46:38 Put the comment at the end if the code is at the e
please use gerrit instead 2014/04/02 21:54:52 Done.
68 // date_modified The date on which this profile was last modified. 73 // date_modified The date on which this profile was last modified.
69 // Added in version 30. 74 // Added in version 30.
70 // origin The domain of origin for this profile. 75 // origin The domain of origin for this profile.
71 // Added in version 50. 76 // Added in version 50.
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
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698