diff options
author | dhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 21:20:03 +0000 |
---|---|---|
committer | dhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 21:20:03 +0000 |
commit | 09205efb90f920a885b1803a68a148bfa54d79ee (patch) | |
tree | dd3747979ff833e460bd70e52cca2d100232283b /chrome/browser/autofill/autofill_manager.h | |
parent | 96ed237d4c3d8cd9d1a16851b7094b476c6c95e9 (diff) | |
download | chromium_src-09205efb90f920a885b1803a68a148bfa54d79ee.zip chromium_src-09205efb90f920a885b1803a68a148bfa54d79ee.tar.gz chromium_src-09205efb90f920a885b1803a68a148bfa54d79ee.tar.bz2 |
Refactoring of upload, form saving, and UMA logging.
BUG=none
TEST=PersonalDataManagerTest.*, AutoFillManagerTest.*
Review URL: http://codereview.chromium.org/6286003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager.h')
-rw-r--r-- | chrome/browser/autofill/autofill_manager.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h index 76ed0d7..bbf219e 100644 --- a/chrome/browser/autofill/autofill_manager.h +++ b/chrome/browser/autofill/autofill_manager.h @@ -67,11 +67,11 @@ class AutoFillManager : public IPC::Channel::Listener, // Returns the value of the AutoFillEnabled pref. virtual bool IsAutoFillEnabled() const; - // Handles the form data submitted by the user. - void HandleSubmit(); + // Imports the form data, submitted by the user, into |personal_data_|. + void ImportFormData(const FormStructure& submitted_form); // Uploads the form data to the AutoFill server. - void UploadFormData(); + void UploadFormData(const FormStructure& submitted_form); // Reset cache. void Reset(); @@ -173,9 +173,11 @@ class AutoFillManager : public IPC::Channel::Listener, void ParseForms(const std::vector<webkit_glue::FormData>& forms); // Uses existing personal data to determine possible field types for the - // |upload_form_structure_|. - void DeterminePossibleFieldTypesForUpload( - const FormStructure* cached_upload_form_structure); + // |submitted_form|. + void DeterminePossibleFieldTypesForUpload(FormStructure* submitted_form); + + void LogMetricsAboutSubmittedForm(const webkit_glue::FormData& form, + const FormStructure* submitted_form); // The TabContents hosting this AutoFillManager. // Weak reference. @@ -204,9 +206,6 @@ class AutoFillManager : public IPC::Channel::Listener, // 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 credit card information. // Deletes itself when closed. AutoFillCCInfoBarDelegate* cc_infobar_; |