1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_PARSING_EMAIL_FIELD_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_PARSING_EMAIL_FIELD_H_
7 
8 #include <memory>
9 
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "components/autofill/core/browser/form_parsing/form_field.h"
13 #include "components/autofill/core/browser/pattern_provider/pattern_provider.h"
14 
15 namespace autofill {
16 
17 class LogManager;
18 
19 class EmailField : public FormField {
20  public:
21   static std::unique_ptr<FormField> Parse(AutofillScanner* scanner,
22                                           const std::string& page_language,
23                                           LogManager* log_manager);
24   explicit EmailField(const AutofillField* field);
25 
26  protected:
27   void AddClassifications(FieldCandidatesMap* field_candidates) const override;
28 
29  private:
30   const AutofillField* field_;
31 
32   DISALLOW_COPY_AND_ASSIGN(EmailField);
33 };
34 
35 }  // namespace autofill
36 
37 #endif  // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_PARSING_EMAIL_FIELD_H_
38