| 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/sql/connection.h" | 10 #include "app/sql/connection.h" |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 bool ClearAutofillEmptyValueElements(); | 301 bool ClearAutofillEmptyValueElements(); |
| 302 | 302 |
| 303 // Insert a single AutofillEntry into the autofill/autofill_dates tables. | 303 // Insert a single AutofillEntry into the autofill/autofill_dates tables. |
| 304 bool InsertAutofillEntry(const AutofillEntry& entry); | 304 bool InsertAutofillEntry(const AutofillEntry& entry); |
| 305 | 305 |
| 306 bool InitKeywordsTable(); | 306 bool InitKeywordsTable(); |
| 307 bool InitLoginsTable(); | 307 bool InitLoginsTable(); |
| 308 bool InitAutofillTable(); | 308 bool InitAutofillTable(); |
| 309 bool InitAutofillDatesTable(); | 309 bool InitAutofillDatesTable(); |
| 310 bool InitAutoFillProfilesTable(); | 310 bool InitAutoFillProfilesTable(); |
| 311 // Out parameter |credit_card_table_created| set to true if table is created | 311 bool InitCreditCardsTable(); |
| 312 // here. | |
| 313 bool InitCreditCardsTable(bool* credit_card_table_created); | |
| 314 bool InitWebAppIconsTable(); | 312 bool InitWebAppIconsTable(); |
| 315 bool InitWebAppsTable(); | 313 bool InitWebAppsTable(); |
| 316 | 314 |
| 317 void MigrateOldVersionsAsNeeded(bool credit_card_table_created); | 315 void MigrateOldVersionsAsNeeded(); |
| 318 | 316 |
| 319 sql::Connection db_; | 317 sql::Connection db_; |
| 320 sql::MetaTable meta_table_; | 318 sql::MetaTable meta_table_; |
| 321 | 319 |
| 322 scoped_ptr<NotificationService> notification_service_; | 320 scoped_ptr<NotificationService> notification_service_; |
| 323 | 321 |
| 324 DISALLOW_COPY_AND_ASSIGN(WebDatabase); | 322 DISALLOW_COPY_AND_ASSIGN(WebDatabase); |
| 325 }; | 323 }; |
| 326 | 324 |
| 327 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ | 325 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ |
| OLD | NEW |