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

Unified Diff: chrome/browser/webdata/web_database.h

Issue 6677124: Move migration code out of WebDatabase and into table-specific classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/webdata/web_database.h
diff --git a/chrome/browser/webdata/web_database.h b/chrome/browser/webdata/web_database.h
index e743f38b0d86921185dc7e66577da82f1098a11f..0f0f4b022c3c2c8af7f9cf3d9047c38e6953958b 100644
--- a/chrome/browser/webdata/web_database.h
+++ b/chrome/browser/webdata/web_database.h
@@ -43,6 +43,14 @@ class WebDatabase {
sql::Connection* GetSQLConnection();
private:
+ // Change the version number and possibly the compatibility version of
dhollowa 2011/04/04 16:13:20 These would be better pulled into the .cc as utili
Bons 2011/04/05 11:05:13 Done.
+ // |meta_table_|.
+ void ChangeVersion(int version_num, bool update_compatible_version_num);
+
+ // Outputs the failed version number as a warning and always returns
+ // |sql::INIT_FAILURE|.
+ sql::InitStatus FailedMigrationTo(int version_num);
+
// Used by |Init()| to migration database schema from older versions to
// current version.
sql::InitStatus MigrateOldVersionsAsNeeded();

Powered by Google App Engine
This is Rietveld 408576698