summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/personal_data_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill/personal_data_manager.h')
-rw-r--r--chrome/browser/autofill/personal_data_manager.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/chrome/browser/autofill/personal_data_manager.h b/chrome/browser/autofill/personal_data_manager.h
new file mode 100644
index 0000000..f8a7b01
--- /dev/null
+++ b/chrome/browser/autofill/personal_data_manager.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2009 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_AUTOFILL_PERSONAL_DATA_MANAGER_H_
+#define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
+
+#include <vector>
+
+class AutoFillManager;
+class FormStructure;
+
+// Handles loading and saving AutoFill profile information to the web database.
+// This class also stores the profiles loaded from the database for use during
+// AutoFill.
+class PersonalDataManager {
+ public:
+ virtual ~PersonalDataManager();
+
+ // If AutoFill is able to determine the field types of a significant number
+ // of field types that contain information in the FormStructures and the user
+ // has not previously been prompted, the user will be asked if he would like
+ // to import the data. If the user selects yes, a profile will be created
+ // with all of the information from recognized fields.
+ virtual bool ImportFormData(
+ const std::vector<FormStructure*>& form_structures,
+ AutoFillManager* autofill_manager);
+
+ private:
+ // Make sure that only Profile can create an instance of PersonalDataManager.
+ friend class ProfileImpl;
+
+ PersonalDataManager();
+};
+
+#endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_