Move remaining Autofill code to //components/autofill.
This leaves behind all browser tests, the AutofillCCInfobarDelegate
and PersonalDataManagerFactory, which remain Chrome-specific.
All source files were moved using //tools/git/move_source_file.py,
which updates includes of moved files, sorts include order, and
updates header guards.
The only manual bits of this change were:
- Move .proto file
- Move .cc.utf8 file
- Update .gypi files
- Update DEPS files
- Remove an unnecessary include from autofill_manager.cc
[email protected]
BUG=140037
Review URL: https://chromiumcodereview.appspot.com/12434004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187173 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/components/autofill/browser/personal_data_manager_observer.h b/components/autofill/browser/personal_data_manager_observer.h
new file mode 100644
index 0000000..f2becb6
--- /dev/null
+++ b/components/autofill/browser/personal_data_manager_observer.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2011 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 COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_
+#define COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_
+
+// An interface the PersonalDataManager uses to notify its clients (observers)
+// when it has finished loading personal data from the web database. Register
+// observers via PersonalDataManager::AddObserver.
+class PersonalDataManagerObserver {
+ public:
+ // Notifies the observer that the PersonalDataManager changed in some way.
+ virtual void OnPersonalDataChanged() = 0;
+ virtual void OnInsufficientFormData() {}
+
+ protected:
+ virtual ~PersonalDataManagerObserver() {}
+};
+
+#endif // COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_