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..0b04cde57d3c2a8824b7f80b62e65aeda4b6e529 100644 |
--- a/chrome/browser/api/webdata/autofill_web_data_service.h |
+++ b/chrome/browser/api/webdata/autofill_web_data_service.h |
@@ -5,27 +5,43 @@ |
#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); |
+ |
// Retrieve an AutofillWebDataService for the given context. |
// |
// Can return NULL in some contexts. |
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() {} |
}; |