| 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 CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_ | 6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "chrome/browser/autofill/autofill_type.h" |
| 11 #include "chrome/browser/autofill/form_field.h" | 13 #include "chrome/browser/autofill/form_field.h" |
| 12 | 14 |
| 13 class AutofillField; | 15 class AutofillField; |
| 14 | 16 |
| 15 class CreditCardField : public FormField { | 17 class CreditCardField : public FormField { |
| 16 public: | 18 public: |
| 17 // FormField implementation: | 19 // FormField implementation: |
| 18 virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const; | 20 virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const; |
| 19 virtual FormFieldType GetFormFieldType() const; | 21 virtual FormFieldType GetFormFieldType() const; |
| 20 | 22 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 43 AutofillField* verification_; | 45 AutofillField* verification_; |
| 44 | 46 |
| 45 // Both required. TODO(jhawkins): Parse the select control. | 47 // Both required. TODO(jhawkins): Parse the select control. |
| 46 AutofillField* expiration_month_; | 48 AutofillField* expiration_month_; |
| 47 AutofillField* expiration_year_; | 49 AutofillField* expiration_year_; |
| 48 | 50 |
| 49 DISALLOW_COPY_AND_ASSIGN(CreditCardField); | 51 DISALLOW_COPY_AND_ASSIGN(CreditCardField); |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_ | 54 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_ |
| OLD | NEW |