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

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

Issue 5741001: Even more virtual method deinlining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (windows) Created 10 years 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
« no previous file with comments | « chrome/browser/autofill/fax_number.cc ('k') | chrome/browser/autofill/form_field.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_FORM_FIELD_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_
6 #define CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_ 6 #define CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // name, phone number, or address field. 68 // name, phone number, or address field.
69 class FormField { 69 class FormField {
70 public: 70 public:
71 virtual ~FormField() {} 71 virtual ~FormField() {}
72 72
73 // Associates the available AutoFillTypes of a FormField into 73 // Associates the available AutoFillTypes of a FormField into
74 // |field_type_map|. 74 // |field_type_map|.
75 virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const = 0; 75 virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const = 0;
76 76
77 // Returns the type of form field of the class implementing this interface. 77 // Returns the type of form field of the class implementing this interface.
78 virtual FormFieldType GetFormFieldType() const { return kOtherFieldType; } 78 virtual FormFieldType GetFormFieldType() const;
79 79
80 // Returns true if |field| contains the regexp |pattern| in the name or label. 80 // Returns true if |field| contains the regexp |pattern| in the name or label.
81 // If |match_label_only| is true, then only the field's label is considered. 81 // If |match_label_only| is true, then only the field's label is considered.
82 static bool Match(AutoFillField* field, 82 static bool Match(AutoFillField* field,
83 const string16& pattern, 83 const string16& pattern,
84 bool match_label_only); 84 bool match_label_only);
85 85
86 // Parses a field using the different field views we know about. |is_ecml| 86 // Parses a field using the different field views we know about. |is_ecml|
87 // should be true when the field conforms to the ECML specification. 87 // should be true when the field conforms to the ECML specification.
88 static FormField* ParseFormField( 88 static FormField* ParseFormField(
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 private: 163 private:
164 // Checks if any of the labels are named according to the ECML standard. 164 // Checks if any of the labels are named according to the ECML standard.
165 // Returns true if at least one ECML named element is found. 165 // Returns true if at least one ECML named element is found.
166 bool CheckECML(FormStructure* fields); 166 bool CheckECML(FormStructure* fields);
167 167
168 DISALLOW_COPY_AND_ASSIGN(FormFieldSet); 168 DISALLOW_COPY_AND_ASSIGN(FormFieldSet);
169 }; 169 };
170 170
171 #endif // CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_ 171 #endif // CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/fax_number.cc ('k') | chrome/browser/autofill/form_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698