| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/autofill/form_structure.h" | 5 #include "chrome/browser/autofill/form_structure.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/sha1.h" | 9 #include "base/sha1.h" |
| 10 #include "base/stringprintf.h" |
| 10 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 11 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/autofill/autofill_metrics.h" | 13 #include "chrome/browser/autofill/autofill_metrics.h" |
| 13 #include "chrome/browser/autofill/autofill_xml_parser.h" | 14 #include "chrome/browser/autofill/autofill_xml_parser.h" |
| 14 #include "chrome/browser/autofill/field_types.h" | 15 #include "chrome/browser/autofill/field_types.h" |
| 15 #include "chrome/browser/autofill/form_field.h" | 16 #include "chrome/browser/autofill/form_field.h" |
| 16 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 17 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| 17 #include "webkit/glue/form_field.h" | 18 #include "webkit/glue/form_field.h" |
| 18 | 19 |
| 19 using webkit_glue::FormData; | 20 using webkit_glue::FormData; |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 } else { | 585 } else { |
| 585 buzz::XmlElement *field_element = new buzz::XmlElement( | 586 buzz::XmlElement *field_element = new buzz::XmlElement( |
| 586 buzz::QName(kXMLElementField)); | 587 buzz::QName(kXMLElementField)); |
| 587 field_element->SetAttr(buzz::QName(kAttributeSignature), | 588 field_element->SetAttr(buzz::QName(kAttributeSignature), |
| 588 field->FieldSignature()); | 589 field->FieldSignature()); |
| 589 encompassing_xml_element->AddElement(field_element); | 590 encompassing_xml_element->AddElement(field_element); |
| 590 } | 591 } |
| 591 } | 592 } |
| 592 return true; | 593 return true; |
| 593 } | 594 } |
| OLD | NEW |