| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 11 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "components/autofill/core/browser/form_field.h" | 12 #include "components/autofill/core/browser/form_field.h" |
| 12 | 13 |
| 13 namespace autofill { | 14 namespace autofill { |
| 14 | 15 |
| 15 class EmailField : public FormField { | 16 class EmailField : public FormField { |
| 16 public: | 17 public: |
| 17 static scoped_ptr<FormField> Parse(AutofillScanner* scanner); | 18 static std::unique_ptr<FormField> Parse(AutofillScanner* scanner); |
| 18 | 19 |
| 19 protected: | 20 protected: |
| 20 void AddClassifications(FieldCandidatesMap* field_candidates) const override; | 21 void AddClassifications(FieldCandidatesMap* field_candidates) const override; |
| 21 | 22 |
| 22 private: | 23 private: |
| 23 explicit EmailField(const AutofillField* field); | 24 explicit EmailField(const AutofillField* field); |
| 24 | 25 |
| 25 const AutofillField* field_; | 26 const AutofillField* field_; |
| 26 | 27 |
| 27 DISALLOW_COPY_AND_ASSIGN(EmailField); | 28 DISALLOW_COPY_AND_ASSIGN(EmailField); |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 } // namespace autofill | 31 } // namespace autofill |
| 31 | 32 |
| 32 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ | 33 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ |
| OLD | NEW |