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

Unified Diff: components/autofill/browser/webdata/autofill_webdata_service.h

Issue 14081043: Hook up Autofill Backend interface to SyncableServices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update interface Created 7 years, 7 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/autofill/browser/webdata/autofill_webdata_service.h
diff --git a/components/autofill/browser/webdata/autofill_webdata_service.h b/components/autofill/browser/webdata/autofill_webdata_service.h
index 2a8731749b72baf113037c41ed4424b0c90b3348..51a4327028f2f0fa40078fd57e89aad1f3968d8c 100644
--- a/components/autofill/browser/webdata/autofill_webdata_service.h
+++ b/components/autofill/browser/webdata/autofill_webdata_service.h
@@ -95,6 +95,8 @@ class AutofillWebDataService : public AutofillWebData,
void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer);
void RemoveObserver(AutofillWebDataServiceObserverOnUIThread* observer);
+ void NotifyAutofillMultipleChangedOnUIThread();
Ilya Sherman 2013/05/13 23:44:47 nit: Why did you change the visibility of this met
Cait (Slow) 2013/05/14 22:30:08 This method is passed to the backend as a callback
+
// Returns a SupportsUserData objects that may be used to store data
// owned by the DB thread on this object. Should be called only from
// the DB thread, and will be destroyed on the DB thread soon after
@@ -112,6 +114,10 @@ class AutofillWebDataService : public AutofillWebData,
virtual void ShutdownOnDBThread();
+ base::WeakPtr<AutofillWebDataService> AsWeakPtr() {
+ return weak_ptr_factory_.GetWeakPtr();
+ }
+
private:
// This makes the destructor public, and thus allows us to aggregate
// SupportsUserData. It is private by default to prevent incorrect
@@ -125,8 +131,6 @@ class AutofillWebDataService : public AutofillWebData,
DISALLOW_COPY_AND_ASSIGN(SupportsUserDataAggregatable);
};
- void NotifyAutofillMultipleChangedOnUIThread();
-
// Storage for user data to be accessed only on the DB thread. May
// be used e.g. for SyncableService subclasses that need to be owned
// by this object. Is created on first call to |GetDBUserData()|.

Powered by Google App Engine
This is Rietveld 408576698