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

Unified Diff: components/autofill/browser/webdata/autofill_webdata_service.h

Issue 14081043: Hook up Autofill Backend interface to SyncableServices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge Created 7 years, 7 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: 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 4f43bc5138977380a66191fa5eab290bab8ad688..1dee5e9435587508b9403b405a74680680159f47 100644
--- a/components/autofill/browser/webdata/autofill_webdata_service.h
+++ b/components/autofill/browser/webdata/autofill_webdata_service.h
@@ -48,14 +48,6 @@ class AutofillWebDataService : public AutofillWebData,
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);
-
// WebDataServiceBase implementation.
virtual void ShutdownOnUIThread() OVERRIDE;
@@ -72,7 +64,6 @@ class AutofillWebDataService : public AutofillWebData,
WebDataServiceConsumer* consumer) OVERRIDE;
virtual void RemoveFormElementsAddedBetween(
const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE;
- virtual void RemoveExpiredFormElements() OVERRIDE;
virtual void RemoveFormValueForElementName(
const base::string16& name,
const base::string16& value) OVERRIDE;
@@ -112,8 +103,14 @@ class AutofillWebDataService : public AutofillWebData,
protected:
virtual ~AutofillWebDataService();
+ virtual void NotifyAutofillMultipleChangedOnUIThread();
+
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
@@ -127,8 +124,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()|.

Powered by Google App Engine
This is Rietveld 408576698