OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/autofill/browser/form_structure.h" | 5 #include "components/autofill/browser/form_structure.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/sha1.h" | 13 #include "base/sha1.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "components/autofill/browser/autofill_metrics.h" | 19 #include "components/autofill/browser/autofill_metrics.h" |
20 #include "components/autofill/browser/autofill_type.h" | 20 #include "components/autofill/browser/autofill_type.h" |
21 #include "components/autofill/browser/autofill_xml_parser.h" | 21 #include "components/autofill/browser/autofill_xml_parser.h" |
22 #include "components/autofill/browser/field_types.h" | 22 #include "components/autofill/browser/field_types.h" |
23 #include "components/autofill/browser/form_field.h" | 23 #include "components/autofill/browser/form_field.h" |
24 #include "components/autofill/common/autofill_constants.h" | |
25 #include "components/autofill/common/form_data.h" | |
26 #include "components/autofill/common/form_data_predictions.h" | |
27 #include "components/autofill/common/form_field_data.h" | |
28 #include "components/autofill/common/form_field_data_predictions.h" | |
29 #include "components/autofill/content/browser/autocheckout_page_meta_data.h" | 24 #include "components/autofill/content/browser/autocheckout_page_meta_data.h" |
| 25 #include "components/autofill/core/common/autofill_constants.h" |
| 26 #include "components/autofill/core/common/form_data.h" |
| 27 #include "components/autofill/core/common/form_data_predictions.h" |
| 28 #include "components/autofill/core/common/form_field_data.h" |
| 29 #include "components/autofill/core/common/form_field_data_predictions.h" |
30 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 30 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
31 | 31 |
32 namespace autofill { | 32 namespace autofill { |
33 namespace { | 33 namespace { |
34 | 34 |
35 const char kFormMethodPost[] = "post"; | 35 const char kFormMethodPost[] = "post"; |
36 | 36 |
37 // XML elements and attributes. | 37 // XML elements and attributes. |
38 const char kAttributeAcceptedFeatures[] = "accepts"; | 38 const char kAttributeAcceptedFeatures[] = "accepts"; |
39 const char kAttributeAutofillUsed[] = "autofillused"; | 39 const char kAttributeAutofillUsed[] = "autofillused"; |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 AutofillType::FieldTypeGroup field_type_group = | 1213 AutofillType::FieldTypeGroup field_type_group = |
1214 AutofillType((*field)->type()).group(); | 1214 AutofillType((*field)->type()).group(); |
1215 if (field_type_group == AutofillType::CREDIT_CARD) | 1215 if (field_type_group == AutofillType::CREDIT_CARD) |
1216 (*field)->set_section((*field)->section() + "-cc"); | 1216 (*field)->set_section((*field)->section() + "-cc"); |
1217 else | 1217 else |
1218 (*field)->set_section((*field)->section() + "-default"); | 1218 (*field)->set_section((*field)->section() + "-default"); |
1219 } | 1219 } |
1220 } | 1220 } |
1221 | 1221 |
1222 } // namespace autofill | 1222 } // namespace autofill |
OLD | NEW |