Index: components/autofill/browser/autofill_xml_parser.h |
diff --git a/components/autofill/browser/autofill_xml_parser.h b/components/autofill/browser/autofill_xml_parser.h |
index 4d1498fb5b1d1a2be6cce113262de991183cb3f3..a3367cb01da6bb7d780524a9d1b2ea698b51564f 100644 |
--- a/components/autofill/browser/autofill_xml_parser.h |
+++ b/components/autofill/browser/autofill_xml_parser.h |
@@ -89,6 +89,14 @@ class AutofillQueryXmlParser : public AutofillXmlParser { |
const char* name, |
const char** attrs) OVERRIDE; |
+ // A helper function to parse a |WebElementDescriptor|. |
+ // |context| is the current parsing context. |
+ // |attrs| is the list of attributes (names and values) for the element. |
+ // |element_descriptor| will be populated by this function. |
+ void ParseElementDescriptor(buzz::XmlParseContext* context, |
+ const char* const* attrs, |
+ WebElementDescriptor* element_descriptor); |
+ |
// A helper function to retrieve integer values from strings. Raises an |
// XML parse error if it fails. |
// |context| is the current parsing context. |
@@ -109,6 +117,9 @@ class AutofillQueryXmlParser : public AutofillXmlParser { |
// Page metadata for multipage autofill flow. |
AutocheckoutPageMetaData* page_meta_data_; |
+ // The click element the parser is currently processing. |
+ WebElementDescriptor* current_click_element_; |
+ |
DISALLOW_COPY_AND_ASSIGN(AutofillQueryXmlParser); |
}; |