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_EMAIL_FIELD_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_EMAIL_FIELD_H_ |
6 #define CHROME_BROWSER_AUTOFILL_EMAIL_FIELD_H_ | 6 #define CHROME_BROWSER_AUTOFILL_EMAIL_FIELD_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/autofill/form_field.h" | 10 #include "chrome/browser/autofill/form_field.h" |
11 | 11 |
12 class EmailField : public FormField { | 12 class EmailField : public FormField { |
13 public: | 13 public: |
14 static FormField* Parse(AutofillScanner* scanner, bool parse_new_field_types); | 14 static FormField* Parse(AutofillScanner* scanner); |
15 | 15 |
16 protected: | 16 protected: |
17 // FormField: | 17 // FormField: |
18 virtual bool ClassifyField(FieldTypeMap* map) const OVERRIDE; | 18 virtual bool ClassifyField(FieldTypeMap* map) const OVERRIDE; |
19 | 19 |
20 private: | 20 private: |
21 explicit EmailField(const AutofillField* field); | 21 explicit EmailField(const AutofillField* field); |
22 | 22 |
23 const AutofillField* field_; | 23 const AutofillField* field_; |
24 | 24 |
25 DISALLOW_COPY_AND_ASSIGN(EmailField); | 25 DISALLOW_COPY_AND_ASSIGN(EmailField); |
26 }; | 26 }; |
27 | 27 |
28 #endif // CHROME_BROWSER_AUTOFILL_EMAIL_FIELD_H_ | 28 #endif // CHROME_BROWSER_AUTOFILL_EMAIL_FIELD_H_ |
OLD | NEW |