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

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

Issue 12897009: Autofill Webdata Split TRY ONLY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try again 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
« no previous file with comments | « no previous file | chrome/browser/api/webdata/web_data_service_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {}
};
« no previous file with comments | « no previous file | chrome/browser/api/webdata/web_data_service_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698