Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4777)

Unified Diff: chrome/browser/autofill/form_structure.h

Issue 7613015: Add preliminary Autofill support for 'autocompletetype' sections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/form_structure.h
diff --git a/chrome/browser/autofill/form_structure.h b/chrome/browser/autofill/form_structure.h
index 92e4de9ed1ad13e46c2332cf0341640fdbf0eb60..11c0b2cb5c3fc0d91d927605257b811006ac3f43 100644
--- a/chrome/browser/autofill/form_structure.h
+++ b/chrome/browser/autofill/form_structure.h
@@ -155,6 +155,20 @@ class FormStructure {
bool EncodeFormRequest(EncodeRequestType request_type,
buzz::XmlElement* encompassing_xml_element) const;
+ // Classifies each field in |fields_| based upon its |autocompletetype|
+ // attribute, if the attribute is available. The association is stored into
+ // |map|. Fills |found_attribute| with |true| if the attribute is available
+ // (and non-empty) for at least one field. Fills |found_sections| with |true|
+ // if the attribute specifies a section for at least one field.
+ void ParseAutocompletetypeAttributes(bool* found_attribute,
+ bool* found_sections);
+
+ // Classifies each field in |fields_| into a logical section.
+ // Sections are identified by the heuristic that a logical section should not
+ // include multiple fields of the same autofill type (with some exceptions, as
+ // described in the implementation).
+ void IdentifySections();
+
// The name of the form.
string16 form_name_;

Powered by Google App Engine
This is Rietveld 408576698