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

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

Issue 949563003: Add recipient name to server autofill profile database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // masked_credit_cards table to get the rest of the data. 161 // masked_credit_cards table to get the rest of the data.
162 // card_number_encrypted 162 // card_number_encrypted
163 // Full card number, encrypted. 163 // Full card number, encrypted.
164 // 164 //
165 // server_addresses This table contains Autofill address data synced from 165 // server_addresses This table contains Autofill address data synced from
166 // the wallet server. It's basically the same as the 166 // the wallet server. It's basically the same as the
167 // autofill_profiles table but locally immutable. 167 // autofill_profiles table but locally immutable.
168 // 168 //
169 // id String assigned by the server to identify this address. 169 // id String assigned by the server to identify this address.
170 // This is opaque to the client. 170 // This is opaque to the client.
171 // recipient_name Added in v62.
171 // company_name 172 // company_name
172 // street_address The combined lines of the street address. 173 // street_address The combined lines of the street address.
173 // address_1 Also known as "administrative area". This is normally 174 // address_1 Also known as "administrative area". This is normally
174 // the state or province in most countries. 175 // the state or province in most countries.
175 // address_2 Also known as "locality". In the US this is the city. 176 // address_2 Also known as "locality". In the US this is the city.
176 // address_3 A sub-classification beneath the city, e.g. an 177 // address_3 A sub-classification beneath the city, e.g. an
177 // inner-city district or suburb. Also known as 178 // inner-city district or suburb. Also known as
178 // "dependent_locality". 179 // "dependent_locality".
179 // address_4 Used in certain countries. Also known as 180 // address_4 Used in certain countries. Also known as
180 // "sub_dependent_locality". 181 // "sub_dependent_locality".
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 bool MigrateToVersion34ProfilesBasedOnCountryCode(); 363 bool MigrateToVersion34ProfilesBasedOnCountryCode();
363 bool MigrateToVersion35GreatBritainCountryCodes(); 364 bool MigrateToVersion35GreatBritainCountryCodes();
364 bool MigrateToVersion37MergeAndCullOlderProfiles(); 365 bool MigrateToVersion37MergeAndCullOlderProfiles();
365 bool MigrateToVersion51AddOriginColumn(); 366 bool MigrateToVersion51AddOriginColumn();
366 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields(); 367 bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields();
367 bool MigrateToVersion55MergeAutofillDatesTable(); 368 bool MigrateToVersion55MergeAutofillDatesTable();
368 bool MigrateToVersion56AddProfileLanguageCodeForFormatting(); 369 bool MigrateToVersion56AddProfileLanguageCodeForFormatting();
369 bool MigrateToVersion57AddFullNameField(); 370 bool MigrateToVersion57AddFullNameField();
370 bool MigrateToVersion60AddServerCards(); 371 bool MigrateToVersion60AddServerCards();
371 bool MigrateToVersion61AddUsageStats(); 372 bool MigrateToVersion61AddUsageStats();
373 bool MigrateToVersion62AddServerRecipientName();
372 374
373 // Max data length saved in the table; 375 // Max data length saved in the table;
374 static const size_t kMaxDataLength; 376 static const size_t kMaxDataLength;
375 377
376 private: 378 private:
377 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill); 379 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill);
378 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); 380 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges);
379 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); 381 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges);
380 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); 382 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace);
381 FRIEND_TEST_ALL_PREFIXES( 383 FRIEND_TEST_ALL_PREFIXES(
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 // created (on the UI thread), and cached here so that it can be used for 447 // created (on the UI thread), and cached here so that it can be used for
446 // migrations (on the DB thread). 448 // migrations (on the DB thread).
447 std::string app_locale_; 449 std::string app_locale_;
448 450
449 DISALLOW_COPY_AND_ASSIGN(AutofillTable); 451 DISALLOW_COPY_AND_ASSIGN(AutofillTable);
450 }; 452 };
451 453
452 } // namespace autofill 454 } // namespace autofill
453 455
454 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ 456 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698