| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 bool ClearAutofillEmptyValueElements(); | 325 bool ClearAutofillEmptyValueElements(); |
| 326 | 326 |
| 327 // Insert a single AutofillEntry into the autofill/autofill_dates tables. | 327 // Insert a single AutofillEntry into the autofill/autofill_dates tables. |
| 328 bool InsertAutofillEntry(const AutofillEntry& entry); | 328 bool InsertAutofillEntry(const AutofillEntry& entry); |
| 329 | 329 |
| 330 bool InitKeywordsTable(); | 330 bool InitKeywordsTable(); |
| 331 bool InitLoginsTable(); | 331 bool InitLoginsTable(); |
| 332 bool InitAutofillTable(); | 332 bool InitAutofillTable(); |
| 333 bool InitAutofillDatesTable(); | 333 bool InitAutofillDatesTable(); |
| 334 bool InitAutoFillProfilesTable(); | 334 bool InitAutoFillProfilesTable(); |
| 335 // Out parameter |credit_card_table_created| true if table created here. | 335 bool InitCreditCardsTable(); |
| 336 bool InitCreditCardsTable(bool* table_was_created); | |
| 337 bool InitTokenServiceTable(); | 336 bool InitTokenServiceTable(); |
| 338 bool InitWebAppIconsTable(); | 337 bool InitWebAppIconsTable(); |
| 339 bool InitWebAppsTable(); | 338 bool InitWebAppsTable(); |
| 340 | 339 |
| 341 void MigrateOldVersionsAsNeeded(bool credit_card_table_created); | 340 void MigrateOldVersionsAsNeeded(); |
| 342 | 341 |
| 343 sql::Connection db_; | 342 sql::Connection db_; |
| 344 sql::MetaTable meta_table_; | 343 sql::MetaTable meta_table_; |
| 345 | 344 |
| 346 scoped_ptr<NotificationService> notification_service_; | 345 scoped_ptr<NotificationService> notification_service_; |
| 347 | 346 |
| 348 DISALLOW_COPY_AND_ASSIGN(WebDatabase); | 347 DISALLOW_COPY_AND_ASSIGN(WebDatabase); |
| 349 }; | 348 }; |
| 350 | 349 |
| 351 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ | 350 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ |
| OLD | NEW |