| Index: components/webdata/common/web_database.h
|
| diff --git a/components/webdata/common/web_database.h b/components/webdata/common/web_database.h
|
| index 62aff94b706ac0be469f5136e949201d7c17032c..e14f179a3573e45bed94b1414ab0bf364036c4f5 100644
|
| --- a/components/webdata/common/web_database.h
|
| +++ b/components/webdata/common/web_database.h
|
| @@ -8,6 +8,7 @@
|
| #include <map>
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "components/webdata/common/web_database_table.h"
|
| #include "components/webdata/common/webdata_export.h"
|
| #include "sql/connection.h"
|
| @@ -58,6 +59,12 @@ class WEBDATA_EXPORT WebDatabase {
|
| // Exposed for testing only.
|
| sql::Connection* GetSQLConnection();
|
|
|
| + base::WeakPtr<WebDatabase> AsWeakPtr();
|
| +
|
| + protected:
|
| + // All vended weak pointers are invalidated in dtor.
|
| + base::WeakPtrFactory<WebDatabase> weak_ptr_factory_;
|
| +
|
| private:
|
| // Used by |Init()| to migration database schema from older versions to
|
| // current version.
|
|
|