| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WEB_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ |
| 6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ | 6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 bool ClearAutofillEmptyValueElements(); | 322 bool ClearAutofillEmptyValueElements(); |
| 323 | 323 |
| 324 // Insert a single AutofillEntry into the autofill/autofill_dates tables. | 324 // Insert a single AutofillEntry into the autofill/autofill_dates tables. |
| 325 bool InsertAutofillEntry(const AutofillEntry& entry); | 325 bool InsertAutofillEntry(const AutofillEntry& entry); |
| 326 | 326 |
| 327 bool InitKeywordsTable(); | 327 bool InitKeywordsTable(); |
| 328 bool InitLoginsTable(); | 328 bool InitLoginsTable(); |
| 329 bool InitAutofillTable(); | 329 bool InitAutofillTable(); |
| 330 bool InitAutofillDatesTable(); | 330 bool InitAutofillDatesTable(); |
| 331 bool InitAutoFillProfilesTable(); | 331 bool InitAutoFillProfilesTable(); |
| 332 bool InitCreditCardsTable(); | 332 // Out parameter |credit_card_table_created| true if table created here. |
| 333 bool InitCreditCardsTable(bool* table_was_created); |
| 333 bool InitTokenServiceTable(); | 334 bool InitTokenServiceTable(); |
| 334 bool InitWebAppIconsTable(); | 335 bool InitWebAppIconsTable(); |
| 335 bool InitWebAppsTable(); | 336 bool InitWebAppsTable(); |
| 336 | 337 |
| 337 void MigrateOldVersionsAsNeeded(); | 338 void MigrateOldVersionsAsNeeded(bool credit_card_table_created); |
| 338 | 339 |
| 339 sql::Connection db_; | 340 sql::Connection db_; |
| 340 sql::MetaTable meta_table_; | 341 sql::MetaTable meta_table_; |
| 341 | 342 |
| 342 scoped_ptr<NotificationService> notification_service_; | 343 scoped_ptr<NotificationService> notification_service_; |
| 343 | 344 |
| 344 DISALLOW_COPY_AND_ASSIGN(WebDatabase); | 345 DISALLOW_COPY_AND_ASSIGN(WebDatabase); |
| 345 }; | 346 }; |
| 346 | 347 |
| 347 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ | 348 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ |
| OLD | NEW |