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

Unified Diff: chrome/browser/webdata/web_data_service_observer.h

Issue 12476031: Refactor notifications of chrome/browser/webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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/webdata/web_data_service_observer.h
diff --git a/chrome/browser/webdata/web_data_service_observer.h b/chrome/browser/webdata/web_data_service_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..18fe3574c8d72a0dd9c528f66f9eb2f9691058fd
--- /dev/null
+++ b/chrome/browser/webdata/web_data_service_observer.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_OBSERVER_H_
+#define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_OBSERVER_H_
+
+#include "chrome/browser/webdata/autofill_change.h"
+
+// TODO(kaiwang): Split this into an Autofill-specific part and the rest once we
+// split the Autofill parts of WebDataService off.
+class WebDataServiceObserver {
+ public:
+ // Called whenever Autofill entries are changed.
+ virtual void AutofillEntriesChanged(const AutofillChangeList& changes) {}
+
+ // Called when an AutofillProfile has been added/removed/updated in the
+ // WebDatabase.
+ virtual void AutofillProfileChanged(const AutofillProfileChange& change) {}
+
+ // Called when multiple Autofill entries have been modified by Sync.
+ virtual void AutofillMultipleChanged() {}
+
+ // Called whenever the web database service has finished loading the web
+ // database.
+ virtual void WebDatabaseLoaded() {}
+
+ protected:
+ virtual ~WebDataServiceObserver() {}
+};
+
+#endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698