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

Unified Diff: chrome/browser/webdata/autofill_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: Fix Windows release builds (COMDAT folding combined static functions being used for keys. 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/autofill_table.h
diff --git a/chrome/browser/webdata/autofill_table.h b/chrome/browser/webdata/autofill_table.h
index c0a076c6248da9a32211b89a57eb55e153a71195..72e5850293d9d98358f3d7e772f4deca67458dd6 100644
--- a/chrome/browser/webdata/autofill_table.h
+++ b/chrome/browser/webdata/autofill_table.h
@@ -17,6 +17,7 @@ class AutofillEntry;
class AutofillProfile;
class AutofillTableTest;
class CreditCard;
+class WebDatabase;
struct FormFieldData;
@@ -114,9 +115,14 @@ class Time;
//
class AutofillTable : public WebDatabaseTable {
public:
- AutofillTable(sql::Connection* db, sql::MetaTable* meta_table);
+ AutofillTable();
virtual ~AutofillTable();
- virtual bool Init() OVERRIDE;
+
+ // Retrieves the AutofillTable* owned by |database|.
+ static AutofillTable* FromWebDatabase(WebDatabase* db);
+
+ 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,
« no previous file with comments | « chrome/browser/webdata/autofill_profile_syncable_service.cc ('k') | chrome/browser/webdata/autofill_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698