Chromium Code Reviews| Index: chrome/browser/api/webdata/autofill_web_data_service.h |
| diff --git a/chrome/browser/api/webdata/autofill_web_data_service.h b/chrome/browser/api/webdata/autofill_web_data_service.h |
| index 100cefc989579a6feac8c3d526d577c5793f77e2..4e868bd81c066a1ca1e3f501ae5ed4167308fbd2 100644 |
| --- a/chrome/browser/api/webdata/autofill_web_data_service.h |
| +++ b/chrome/browser/api/webdata/autofill_web_data_service.h |
| @@ -5,20 +5,26 @@ |
| #ifndef CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_H_ |
| #define CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_H_ |
| +#include <vector> |
| + |
| #include "chrome/browser/api/webdata/autofill_web_data.h" |
| +class AutofillChange; |
| +class WebDatabaseService; |
| + |
| namespace content { |
| class BrowserContext; |
| } |
| +typedef std::vector<AutofillChange> AutofillChangeList; |
| + |
| // API for Autofill web data. |
| class AutofillWebDataService |
| : public AutofillWebData, |
| public WebDataServiceBase { |
| public: |
| - // TODO(joi): This should take a ProfileErrorCallback once this |
| - // class doesn't simply delegate to WebDataService. |
| - AutofillWebDataService(); |
| + AutofillWebDataService(scoped_refptr<WebDatabaseService> wdbs, |
| + const ProfileErrorCallback& callback); |
|
dhollowa
2013/03/21 16:44:07
nit: Indent
Cait (Slow)
2013/03/21 23:23:27
Done.
|
| // Retrieve an AutofillWebDataService for the given context. |
| // |
| @@ -26,6 +32,14 @@ class AutofillWebDataService |
| static scoped_refptr<AutofillWebDataService> FromBrowserContext( |
| content::BrowserContext* context); |
| + // Notifies listeners on the UI thread that multiple changes have been made to |
| + // to Autofill records of the database. |
| + // NOTE: This method is intended to be called from the DB thread. It |
| + // it asynchronously notifies listeners on the UI thread. |
| + // |web_data_service| may be NULL for testing purposes. |
| + static void NotifyOfMultipleAutofillChanges( |
| + AutofillWebDataService* web_data_service); |
| + |
| protected: |
| virtual ~AutofillWebDataService() {} |
| }; |