| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" |
| 9 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 10 #include "base/string16.h" | 11 #include "base/string16.h" |
| 11 #include "chrome/browser/webdata/web_database_table.h" | 12 #include "chrome/browser/webdata/web_database_table.h" |
| 12 | 13 |
| 13 #include <vector> | 14 #include <vector> |
| 14 | 15 |
| 15 class AutofillChange; | 16 class AutofillChange; |
| 16 class AutofillEntry; | 17 class AutofillEntry; |
| 17 class AutofillProfile; | 18 class AutofillProfile; |
| 18 class AutofillTableTest; | 19 class AutofillTableTest; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // expiration_month | 112 // expiration_month |
| 112 // expiration_year | 113 // expiration_year |
| 113 // card_number_encrypted Stores encrypted credit card number. | 114 // card_number_encrypted Stores encrypted credit card number. |
| 114 // date_modified The date on which this entry was last modified. | 115 // date_modified The date on which this entry was last modified. |
| 115 // Added in version 30. | 116 // Added in version 30. |
| 116 // | 117 // |
| 117 class AutofillTable : public WebDatabaseTable { | 118 class AutofillTable : public WebDatabaseTable { |
| 118 public: | 119 public: |
| 119 AutofillTable(sql::Connection* db, sql::MetaTable* meta_table); | 120 AutofillTable(sql::Connection* db, sql::MetaTable* meta_table); |
| 120 virtual ~AutofillTable(); | 121 virtual ~AutofillTable(); |
| 121 virtual bool Init(); | 122 virtual bool Init() OVERRIDE; |
| 122 virtual bool IsSyncable(); | 123 virtual bool IsSyncable() OVERRIDE; |
| 123 | 124 |
| 124 // Records the form elements in |elements| in the database in the | 125 // Records the form elements in |elements| in the database in the |
| 125 // autofill table. A list of all added and updated autofill entries | 126 // autofill table. A list of all added and updated autofill entries |
| 126 // is returned in the changes out parameter. | 127 // is returned in the changes out parameter. |
| 127 bool AddFormFieldValues(const std::vector<webkit_glue::FormField>& elements, | 128 bool AddFormFieldValues(const std::vector<webkit_glue::FormField>& elements, |
| 128 std::vector<AutofillChange>* changes); | 129 std::vector<AutofillChange>* changes); |
| 129 | 130 |
| 130 // Records a single form element in the database in the autofill table. A list | 131 // Records a single form element in the database in the autofill table. A list |
| 131 // of all added and updated autofill entries is returned in the changes out | 132 // of all added and updated autofill entries is returned in the changes out |
| 132 // parameter. | 133 // parameter. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 bool InitProfilesTable(); | 330 bool InitProfilesTable(); |
| 330 bool InitProfileNamesTable(); | 331 bool InitProfileNamesTable(); |
| 331 bool InitProfileEmailsTable(); | 332 bool InitProfileEmailsTable(); |
| 332 bool InitProfilePhonesTable(); | 333 bool InitProfilePhonesTable(); |
| 333 bool InitProfileTrashTable(); | 334 bool InitProfileTrashTable(); |
| 334 | 335 |
| 335 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 336 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 336 }; | 337 }; |
| 337 | 338 |
| 338 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 339 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |