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

Side by Side Diff: chrome/browser/autofill/email_field.h

Issue 12260054: [Autofill] Enable heuristic detection of credit card issuer fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/credit_card_field_unittest.cc ('k') | chrome/browser/autofill/email_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698