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

Unified Diff: chrome/browser/api/webdata/autofill_web_data_service.h

Issue 12695015: Split Autofill webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge to 12853004 (move table creation to factory) Created 7 years, 9 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: 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() {}
};
« no previous file with comments | « no previous file | chrome/browser/api/webdata/web_data_service_base.h » ('j') | chrome/browser/api/webdata/web_data_service_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698