| Index: components/webdata/common/web_database_backend.h
|
| diff --git a/components/webdata/common/web_database_backend.h b/components/webdata/common/web_database_backend.h
|
| index 341bb76d7ac5a095943fcd281970fc7316083309..ce3715c9d47fba147f447d793707bf17f67c2e01 100644
|
| --- a/components/webdata/common/web_database_backend.h
|
| +++ b/components/webdata/common/web_database_backend.h
|
| @@ -39,7 +39,11 @@ class WEBDATA_EXPORT WebDatabaseBackend
|
| virtual ~Delegate() {}
|
|
|
| // Invoked when the backend has finished loading the db.
|
| - virtual void DBLoaded(sql::InitStatus status) = 0;
|
| + // |status| is the result of initializing the db.
|
| + // |diagnostics| contains diagnostic information about the db, and it will
|
| + // only be populated when an error occurs.
|
| + virtual void DBLoaded(sql::InitStatus status,
|
| + const sql::DatabaseDiagnosticMap& diagnostics) = 0;
|
| };
|
|
|
| WebDatabaseBackend(
|
| @@ -115,6 +119,10 @@ class WEBDATA_EXPORT WebDatabaseBackend
|
| // before the db is ready.
|
| sql::InitStatus init_status_;
|
|
|
| + // Contains diagnostic information about the database that will be filled when
|
| + // a catastrophic error occurs.
|
| + sql::DatabaseDiagnosticMap db_diagnostics_;
|
| +
|
| // True if an attempt has been made to load the database (even if the attempt
|
| // fails), used to avoid continually trying to reinit if the db init fails.
|
| bool init_complete_;
|
|
|