| 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_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 6 #define COMPONENTS_AUTOFILL_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" |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "components/autofill/common/autofill_export.h" |
| 13 #include "components/webdata/common/web_database_table.h" | 14 #include "components/webdata/common/web_database_table.h" |
| 14 | 15 |
| 15 class WebDatabase; | 16 class WebDatabase; |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class Time; | 19 class Time; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace autofill { | 22 namespace autofill { |
| 22 | 23 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // | 110 // |
| 110 // guid A guid string to uniquely identify the profile. | 111 // guid A guid string to uniquely identify the profile. |
| 111 // Added in version 31. | 112 // Added in version 31. |
| 112 // name_on_card | 113 // name_on_card |
| 113 // expiration_month | 114 // expiration_month |
| 114 // expiration_year | 115 // expiration_year |
| 115 // card_number_encrypted Stores encrypted credit card number. | 116 // card_number_encrypted Stores encrypted credit card number. |
| 116 // date_modified The date on which this entry was last modified. | 117 // date_modified The date on which this entry was last modified. |
| 117 // Added in version 30. | 118 // Added in version 30. |
| 118 // | 119 // |
| 119 class AutofillTable : public WebDatabaseTable { | 120 class AUTOFILL_EXPORT AutofillTable : public WebDatabaseTable { |
| 120 public: | 121 public: |
| 121 explicit AutofillTable(const std::string& app_locale); | 122 explicit AutofillTable(const std::string& app_locale); |
| 122 virtual ~AutofillTable(); | 123 virtual ~AutofillTable(); |
| 123 | 124 |
| 124 // Retrieves the AutofillTable* owned by |database|. | 125 // Retrieves the AutofillTable* owned by |database|. |
| 125 static AutofillTable* FromWebDatabase(WebDatabase* db); | 126 static AutofillTable* FromWebDatabase(WebDatabase* db); |
| 126 | 127 |
| 127 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; | 128 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; |
| 128 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; | 129 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; |
| 129 virtual bool IsSyncable() OVERRIDE; | 130 virtual bool IsSyncable() OVERRIDE; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // created (on the UI thread), and cached here so that it can be used for | 364 // created (on the UI thread), and cached here so that it can be used for |
| 364 // migrations (on the DB thread). | 365 // migrations (on the DB thread). |
| 365 std::string app_locale_; | 366 std::string app_locale_; |
| 366 | 367 |
| 367 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 368 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 368 }; | 369 }; |
| 369 | 370 |
| 370 } // namespace autofill | 371 } // namespace autofill |
| 371 | 372 |
| 372 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 373 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |