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

Unified Diff: components/autofill/core/browser/form_field.h

Issue 22009003: [Autofill] Distinguish between native field types and potentially HTML field types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/core/browser/field_types.h ('k') | components/autofill/core/browser/form_field.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/form_field.h
diff --git a/components/autofill/core/browser/form_field.h b/components/autofill/core/browser/form_field.h
index 67099b21ede1a18fed0a4a99671ec911899c10d2..dbb937f7b6154422d341b49397bd85f7a97ec4d2 100644
--- a/components/autofill/core/browser/form_field.h
+++ b/components/autofill/core/browser/form_field.h
@@ -10,7 +10,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/strings/string16.h"
-#include "components/autofill/core/browser/autofill_type.h"
+#include "components/autofill/core/browser/field_types.h"
namespace autofill {
@@ -28,7 +28,7 @@ class FormField {
// The association is stored into |map|. Each field has a derived unique name
// that is used as the key into the |map|.
static void ParseFormFields(const std::vector<AutofillField*>& fields,
- FieldTypeMap* map);
+ ServerFieldTypeMap* map);
protected:
// A bit-field used for matching specific parts of a field in question.
@@ -76,14 +76,14 @@ class FormField {
// Adds an association between a field and a type to |map|.
static bool AddClassification(const AutofillField* field,
- AutofillFieldType type,
- FieldTypeMap* map);
+ ServerFieldType type,
+ ServerFieldTypeMap* map);
// Derived classes must implement this interface to supply field type
// information. |ParseFormFields| coordinates the parsing and extraction
// of types from an input vector of |AutofillField| objects and delegates
// the type extraction via this method.
- virtual bool ClassifyField(FieldTypeMap* map) const = 0;
+ virtual bool ClassifyField(ServerFieldTypeMap* map) const = 0;
private:
FRIEND_TEST_ALL_PREFIXES(FormFieldTest, Match);
@@ -114,7 +114,7 @@ class FormField {
// Classification results of the processed fields are stored in |map|.
static void ParseFormFieldsPass(ParseFunction parse,
std::vector<const AutofillField*>* fields,
- FieldTypeMap* map);
+ ServerFieldTypeMap* map);
DISALLOW_COPY_AND_ASSIGN(FormField);
};
« no previous file with comments | « components/autofill/core/browser/field_types.h ('k') | components/autofill/core/browser/form_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698