Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chrome/browser/webdata/web_database.h

Issue 3239006: Fix credit card table migration step. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698