| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBDATA_AUTOFILL_AUTOFILL_TABLE_H_ | 5 #ifndef COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_TABLE_H_ |
| 6 #define COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_TABLE_H_ | 6 #define COMPONENTS_WEBDATA_AUTOFILL_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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Added in version 31. | 108 // Added in version 31. |
| 109 // name_on_card | 109 // name_on_card |
| 110 // expiration_month | 110 // expiration_month |
| 111 // expiration_year | 111 // expiration_year |
| 112 // card_number_encrypted Stores encrypted credit card number. | 112 // card_number_encrypted Stores encrypted credit card number. |
| 113 // date_modified The date on which this entry was last modified. | 113 // date_modified The date on which this entry was last modified. |
| 114 // Added in version 30. | 114 // Added in version 30. |
| 115 // | 115 // |
| 116 class AutofillTable : public WebDatabaseTable { | 116 class AutofillTable : public WebDatabaseTable { |
| 117 public: | 117 public: |
| 118 AutofillTable(); | 118 explicit AutofillTable(const std::string& app_locale); |
| 119 virtual ~AutofillTable(); | 119 virtual ~AutofillTable(); |
| 120 | 120 |
| 121 // Retrieves the AutofillTable* owned by |database|. | 121 // Retrieves the AutofillTable* owned by |database|. |
| 122 static AutofillTable* FromWebDatabase(WebDatabase* db); | 122 static AutofillTable* FromWebDatabase(WebDatabase* db); |
| 123 | 123 |
| 124 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; | 124 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; |
| 125 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; | 125 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; |
| 126 virtual bool IsSyncable() OVERRIDE; | 126 virtual bool IsSyncable() OVERRIDE; |
| 127 virtual bool MigrateToVersion(int version, | 127 virtual bool MigrateToVersion(int version, |
| 128 bool* update_compatible_version) OVERRIDE; | 128 bool* update_compatible_version) OVERRIDE; |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // The application locale. The locale is needed for the migration to version | 357 // The application locale. The locale is needed for the migration to version |
| 358 // 35. Since it must be read on the UI thread, it is set when the table is | 358 // 35. Since it must be read on the UI thread, it is set when the table is |
| 359 // created (on the UI thread), and cached here so that it can be used for | 359 // created (on the UI thread), and cached here so that it can be used for |
| 360 // migrations (on the DB thread). | 360 // migrations (on the DB thread). |
| 361 std::string app_locale_; | 361 std::string app_locale_; |
| 362 | 362 |
| 363 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 363 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 364 }; | 364 }; |
| 365 | 365 |
| 366 #endif // COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_TABLE_H_ | 366 #endif // COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_TABLE_H_ |
| OLD | NEW |