| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/autofill/autofill_xml_parser.h" | 12 #include "chrome/browser/autofill/autofill_xml_parser.h" |
| 13 #include "chrome/browser/autofill/field_types.h" | 13 #include "chrome/browser/autofill/field_types.h" |
| 14 #include "chrome/browser/autofill/form_field.h" | 14 #include "chrome/browser/autofill/form_field.h" |
| 15 #include "third_party/libjingle/files/talk/xmllite/xmlelement.h" | 15 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| 16 #include "webkit/glue/form_field.h" | 16 #include "webkit/glue/form_field.h" |
| 17 | 17 |
| 18 using webkit_glue::FormData; | 18 using webkit_glue::FormData; |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const char* kFormMethodPost = "post"; | 22 const char* kFormMethodPost = "post"; |
| 23 | 23 |
| 24 // XML attribute names. | 24 // XML attribute names. |
| 25 const char* const kAttributeClientVersion = "clientversion"; | 25 const char* const kAttributeClientVersion = "clientversion"; |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } else { | 380 } else { |
| 381 buzz::XmlElement *field_element = new buzz::XmlElement( | 381 buzz::XmlElement *field_element = new buzz::XmlElement( |
| 382 buzz::QName(kXMLElementField)); | 382 buzz::QName(kXMLElementField)); |
| 383 field_element->SetAttr(buzz::QName(kAttributeSignature), | 383 field_element->SetAttr(buzz::QName(kAttributeSignature), |
| 384 field->FieldSignature()); | 384 field->FieldSignature()); |
| 385 encompassing_xml_element->AddElement(field_element); | 385 encompassing_xml_element->AddElement(field_element); |
| 386 } | 386 } |
| 387 } | 387 } |
| 388 return true; | 388 return true; |
| 389 } | 389 } |
| OLD | NEW |