Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: components/autofill/core/browser/email_field.h

Issue 853523004: Autofill: Set requirements for number of recognized fields in an autofillable form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More relaxed check for form tag Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "components/autofill/core/browser/form_field.h" 11 #include "components/autofill/core/browser/form_field.h"
12 12
13 namespace autofill { 13 namespace autofill {
14 14
15 class EmailField : public FormField { 15 class EmailField : public FormField {
16 public: 16 public:
17 static scoped_ptr<FormField> Parse(AutofillScanner* scanner); 17 static scoped_ptr<FormField> Parse(AutofillScanner* scanner);
18 18
19 protected: 19 protected:
20 // FormField: 20 // FormField:
21 bool ClassifyField(ServerFieldTypeMap* map) const override; 21 bool ClassifyField(ServerFieldTypeMap* map) const override;
22 size_t FieldCount() const override;
22 23
23 private: 24 private:
24 explicit EmailField(const AutofillField* field); 25 explicit EmailField(const AutofillField* field);
25 26
26 const AutofillField* field_; 27 const AutofillField* field_;
27 28
28 DISALLOW_COPY_AND_ASSIGN(EmailField); 29 DISALLOW_COPY_AND_ASSIGN(EmailField);
29 }; 30 };
30 31
31 } // namespace autofill 32 } // namespace autofill
32 33
33 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ 34 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698