summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_manager.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-16 21:24:29 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-16 21:24:29 +0000
commit4cf0b84c8ee21b0a98c05058a006366faa571104 (patch)
tree9eccc893db1a7ace54cbb032ec87e02338e53cd3 /chrome/browser/autofill/autofill_manager.h
parent1d880243e74f2e904c25417afae3eb1cd1f42d10 (diff)
downloadchromium_src-4cf0b84c8ee21b0a98c05058a006366faa571104.zip
chromium_src-4cf0b84c8ee21b0a98c05058a006366faa571104.tar.gz
chromium_src-4cf0b84c8ee21b0a98c05058a006366faa571104.tar.bz2
AutoFill: Load the imported form data into the AutoFill dialog when the user accepts the AutoFill InfoBar. Save a one-time initial profile to the WebDB if the user dismisses the InfoBar or the InfoBar closes.
BUG=38104,38096 TEST=AutoFillInfoBarDelegateTest Review URL: http://codereview.chromium.org/974004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager.h')
-rw-r--r--chrome/browser/autofill/autofill_manager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h
index fa4593e..9a94e62 100644
--- a/chrome/browser/autofill/autofill_manager.h
+++ b/chrome/browser/autofill/autofill_manager.h
@@ -61,9 +61,15 @@ class AutoFillManager : public RenderViewHostDelegate::AutoFill,
// PersonalDataManager::Observer implementation:
virtual void OnPersonalDataLoaded();
+ // Called by the AutoFillInfoBarDelegate when the user closes the infobar.
+ virtual void OnInfoBarClosed();
+
// Called by the AutoFillInfoBarDelegate when the user accepts the infobar.
virtual void OnInfoBarAccepted();
+ // Called by the AutoFillInfoBarDelegate when the user cancels the infobar.
+ virtual void OnInfoBarCancelled();
+
// Resets the stored form data.
virtual void Reset();
@@ -95,6 +101,8 @@ class AutoFillManager : public RenderViewHostDelegate::AutoFill,
// Our copy of the form data.
ScopedVector<FormStructure> form_structures_;
+
+ // The form data the user has submitted.
scoped_ptr<FormStructure> upload_form_structure_;
// The infobar that asks for permission to store form information.