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