Index: components/webdata/common/web_database.h |
diff --git a/components/webdata/common/web_database.h b/components/webdata/common/web_database.h |
index bd914f446ef1547ab0db195d23e5dfa751a02e3b..79931bedba72d4042d2ff2593492db2d450f6460 100644 |
--- a/components/webdata/common/web_database.h |
+++ b/components/webdata/common/web_database.h |
@@ -41,6 +41,13 @@ class WEBDATA_EXPORT WebDatabase { |
// Retrieves a table based on its |key|. |
WebDatabaseTable* GetTable(WebDatabaseTable::TypeKey key); |
+ // Call before Init() to set the error callback to be used for the |
+ // underlying database connection. |
+ void set_error_callback( |
+ const sql::Connection::ErrorCallback& error_callback) { |
+ db_.set_error_callback(error_callback); |
+ } |
+ |
// Initialize the database given a name. The name defines where the SQLite |
// file is. If this returns an error code, no other method should be called. |
// |
@@ -53,6 +60,8 @@ class WEBDATA_EXPORT WebDatabase { |
void BeginTransaction(); |
void CommitTransaction(); |
+ std::string GetDiagnosticInfo(int extended_error, sql::Statement* statement); |
+ |
// Exposed for testing only. |
sql::Connection* GetSQLConnection(); |