summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/autofill/form_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/autofill/form_cache.h')
-rw-r--r--chrome/renderer/autofill/form_cache.h9
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);