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

Unified Diff: components/webdata/common/web_database.h

Issue 14081043: Hook up Autofill Backend interface to SyncableServices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: 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.

Powered by Google App Engine
This is Rietveld 408576698