| Index: chrome/browser/webdata/web_database_table.h
|
| diff --git a/chrome/browser/webdata/web_database_table.h b/chrome/browser/webdata/web_database_table.h
|
| index 76226959be4468c29e2c00f46b5fd54654cadf88..5462016adaea3ccb40289f8d9c7b16893a23bfc7 100644
|
| --- a/chrome/browser/webdata/web_database_table.h
|
| +++ b/chrome/browser/webdata/web_database_table.h
|
| @@ -16,11 +16,23 @@ class MetaTable;
|
| // Each table should subclass this, adding type-specific methods as needed.
|
| class WebDatabaseTable {
|
| public:
|
| - WebDatabaseTable(sql::Connection* db, sql::MetaTable* meta_table);
|
| + // To look up a WebDatabaseTable of a certain type from WebDatabase,
|
| + // we use a void* key, so that we can simply use the address of one
|
| + // of the type's statics.
|
| + typedef void* TypeKey;
|
| +
|
| + // The object is not ready for use until Init() has been called.
|
| + WebDatabaseTable();
|
| virtual ~WebDatabaseTable();
|
|
|
| + // Retrieves the TypeKey for the concrete subtype.
|
| + virtual TypeKey GetTypeKey() const = 0;
|
| +
|
| // Attempts to initialize the table and returns true if successful.
|
| - virtual bool Init() = 0;
|
| + //
|
| + // The base class stores the members passed and always return true;
|
| + // subclasses may perform other initialization as needed.
|
| + virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table);
|
|
|
| // In order to encourage developers to think about sync when adding or
|
| // or altering new tables, this method must be implemented. Please get in
|
|
|