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 "components/autofill/browser/credit_card_field.h" | 5 #include "components/autofill/core/browser/credit_card_field.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "components/autofill/browser/autofill_field.h" | 14 #include "components/autofill/core/browser/autofill_field.h" |
15 #include "components/autofill/browser/autofill_regex_constants.h" | 15 #include "components/autofill/core/browser/autofill_regex_constants.h" |
16 #include "components/autofill/browser/autofill_scanner.h" | 16 #include "components/autofill/core/browser/autofill_scanner.h" |
17 #include "components/autofill/browser/field_types.h" | 17 #include "components/autofill/core/browser/field_types.h" |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 | 19 |
20 namespace autofill { | 20 namespace autofill { |
21 | 21 |
22 // static | 22 // static |
23 FormField* CreditCardField::Parse(AutofillScanner* scanner) { | 23 FormField* CreditCardField::Parse(AutofillScanner* scanner) { |
24 if (scanner->IsEnd()) | 24 if (scanner->IsEnd()) |
25 return NULL; | 25 return NULL; |
26 | 26 |
27 scoped_ptr<CreditCardField> credit_card_field(new CreditCardField); | 27 scoped_ptr<CreditCardField> credit_card_field(new CreditCardField); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 ok = ok && AddClassification(expiration_year_, | 224 ok = ok && AddClassification(expiration_year_, |
225 CREDIT_CARD_EXP_4_DIGIT_YEAR, | 225 CREDIT_CARD_EXP_4_DIGIT_YEAR, |
226 map); | 226 map); |
227 } | 227 } |
228 } | 228 } |
229 | 229 |
230 return ok; | 230 return ok; |
231 } | 231 } |
232 | 232 |
233 } // namespace autofill | 233 } // namespace autofill |
OLD | NEW |