Chromium Code Reviews| 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()|. |