| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // | 121 // |
| 122 class AutofillTable : public WebDatabaseTable { | 122 class AutofillTable : public WebDatabaseTable { |
| 123 public: | 123 public: |
| 124 explicit AutofillTable(const std::string& app_locale); | 124 explicit AutofillTable(const std::string& app_locale); |
| 125 virtual ~AutofillTable(); | 125 virtual ~AutofillTable(); |
| 126 | 126 |
| 127 // Retrieves the AutofillTable* owned by |database|. | 127 // Retrieves the AutofillTable* owned by |database|. |
| 128 static AutofillTable* FromWebDatabase(WebDatabase* db); | 128 static AutofillTable* FromWebDatabase(WebDatabase* db); |
| 129 | 129 |
| 130 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; | 130 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; |
| 131 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; | 131 virtual bool CreateTablesIfNecessary() OVERRIDE; |
| 132 virtual bool IsSyncable() OVERRIDE; | 132 virtual bool IsSyncable() OVERRIDE; |
| 133 virtual bool MigrateToVersion(int version, | 133 virtual bool MigrateToVersion(int version, |
| 134 bool* update_compatible_version) OVERRIDE; | 134 bool* update_compatible_version) OVERRIDE; |
| 135 | 135 |
| 136 // Records the form elements in |elements| in the database in the | 136 // Records the form elements in |elements| in the database in the |
| 137 // autofill table. A list of all added and updated autofill entries | 137 // autofill table. A list of all added and updated autofill entries |
| 138 // is returned in the changes out parameter. | 138 // is returned in the changes out parameter. |
| 139 bool AddFormFieldValues(const std::vector<FormFieldData>& elements, | 139 bool AddFormFieldValues(const std::vector<FormFieldData>& elements, |
| 140 std::vector<AutofillChange>* changes); | 140 std::vector<AutofillChange>* changes); |
| 141 | 141 |
| (...skipping 209 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 | 351 // created (on the UI thread), and cached here so that it can be used for |
| 352 // migrations (on the DB thread). | 352 // migrations (on the DB thread). |
| 353 std::string app_locale_; | 353 std::string app_locale_; |
| 354 | 354 |
| 355 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 355 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 } // namespace autofill | 358 } // namespace autofill |
| 359 | 359 |
| 360 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 360 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |