diff options
author | ramankk@chromium.org <ramankk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-04 05:37:02 +0000 |
---|---|---|
committer | ramankk@chromium.org <ramankk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-04 05:37:02 +0000 |
commit | 14696913ff86cfbc533bc0db15a134c1627a2d58 (patch) | |
tree | ba5013a3d9403094c35dc49185068ffeb8812394 /chrome/renderer/autofill/form_cache.h | |
parent | fc652c0df8646b9485d0bfb671b84771ef3279d1 (diff) | |
download | chromium_src-14696913ff86cfbc533bc0db15a134c1627a2d58.zip chromium_src-14696913ff86cfbc533bc0db15a134c1627a2d58.tar.gz chromium_src-14696913ff86cfbc533bc0db15a134c1627a2d58.tar.bz2 |
Renderer side changes to save the user supplied data and use it to autofill in multiple page in the flow. Primarily being used by Autocheckout. This is achived by
* Saving the context of all form elements in the top most frame seen
* Using filled form data from browser to fill form elements earlier seen
BUG=172632
Review URL: https://chromiumcodereview.appspot.com/12087122
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180352 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/autofill/form_cache.h')
-rw-r--r-- | chrome/renderer/autofill/form_cache.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/renderer/autofill/form_cache.h b/chrome/renderer/autofill/form_cache.h index 2906224..b235d21 100644 --- a/chrome/renderer/autofill/form_cache.h +++ b/chrome/renderer/autofill/form_cache.h @@ -16,6 +16,7 @@ struct FormDataPredictions; namespace WebKit { class WebDocument; +class WebFormElement; class WebFrame; class WebInputElement; class WebSelectElement; @@ -34,6 +35,14 @@ class FormCache { void ExtractForms(const WebKit::WebFrame& frame, std::vector<FormData>* forms); + // Scans the DOM in |frame| extracting and storing forms. + // Returns a vector of the extracted forms and vector of associated web + // form elements. + void ExtractFormsAndFormElements( + const WebKit::WebFrame& frame, + std::vector<FormData>* forms, + std::vector<WebKit::WebFormElement>* web_form_elements); + // Resets the forms for the specified |frame|. void ResetFrame(const WebKit::WebFrame& frame); |