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 #ifndef CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_CREDIT_CARD_FIELD_H_ |
6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_CREDIT_CARD_FIELD_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "chrome/browser/autofill/autofill_type.h" | 13 #include "components/autofill/browser/autofill_type.h" |
14 #include "chrome/browser/autofill/form_field.h" | 14 #include "components/autofill/browser/form_field.h" |
15 | 15 |
16 class AutofillField; | 16 class AutofillField; |
17 class AutofillScanner; | 17 class AutofillScanner; |
18 | 18 |
19 class CreditCardField : public FormField { | 19 class CreditCardField : public FormField { |
20 public: | 20 public: |
21 static FormField* Parse(AutofillScanner* scanner); | 21 static FormField* Parse(AutofillScanner* scanner); |
22 | 22 |
23 protected: | 23 protected: |
24 // FormField: | 24 // FormField: |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const AutofillField* expiration_year_; | 61 const AutofillField* expiration_year_; |
62 const AutofillField* expiration_date_; | 62 const AutofillField* expiration_date_; |
63 | 63 |
64 // True if the year is detected to be a 2-digit year; otherwise, we assume | 64 // True if the year is detected to be a 2-digit year; otherwise, we assume |
65 // a 4-digit year. | 65 // a 4-digit year. |
66 bool is_two_digit_year_; | 66 bool is_two_digit_year_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(CreditCardField); | 68 DISALLOW_COPY_AND_ASSIGN(CreditCardField); |
69 }; | 69 }; |
70 | 70 |
71 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_ | 71 #endif // COMPONENTS_AUTOFILL_BROWSER_CREDIT_CARD_FIELD_H_ |
OLD | NEW |