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

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

Issue 12543034: Move creation of the various WebDatabaseTable types out of WebDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review. Created 7 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_apps_table.h
diff --git a/chrome/browser/webdata/web_apps_table.h b/chrome/browser/webdata/web_apps_table.h
index 82ebda3c07b9e812b12f9e614ea3cbf824892b96..1f80f50dc4fc6edf60a4607dee2cfc7c89ec236f 100644
--- a/chrome/browser/webdata/web_apps_table.h
+++ b/chrome/browser/webdata/web_apps_table.h
@@ -12,6 +12,7 @@
class GURL;
class SkBitmap;
+class WebDatabase;
// This class manages the WebApps tables within the SQLite database passed to
// the constructor. It expects the following schema:
@@ -30,10 +31,14 @@ class SkBitmap;
//
class WebAppsTable : public WebDatabaseTable {
public:
- WebAppsTable(sql::Connection* db, sql::MetaTable* meta_table)
- : WebDatabaseTable(db, meta_table) {}
+ WebAppsTable() {}
virtual ~WebAppsTable() {}
- virtual bool Init() OVERRIDE;
+
+ // Retrieves the WebAppsTable* owned by |database|.
+ static WebAppsTable* FromWebDatabase(WebDatabase* database);
+
+ virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE;
+ virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE;
virtual bool IsSyncable() OVERRIDE;
virtual bool MigrateToVersion(int version,
const std::string& app_locale,

Powered by Google App Engine
This is Rietveld 408576698