summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/phone_number.h
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 06:26:29 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 06:26:29 +0000
commit1ffe8e993e3052271b9a60f303bcbb8f3104d80b (patch)
treeb5b01c65813c53fa4279907baa8aa8f1eb5d5480 /chrome/browser/autofill/phone_number.h
parentdaa826fee9fa5a59aa7b4bd82a1c6f2f4ae4a636 (diff)
downloadchromium_src-1ffe8e993e3052271b9a60f303bcbb8f3104d80b.zip
chromium_src-1ffe8e993e3052271b9a60f303bcbb8f3104d80b.tar.gz
chromium_src-1ffe8e993e3052271b9a60f303bcbb8f3104d80b.tar.bz2
Reduce boxing and unboxing of AutofillFieldType
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6673079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78518 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/phone_number.h')
-rw-r--r--chrome/browser/autofill/phone_number.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/autofill/phone_number.h b/chrome/browser/autofill/phone_number.h
index 3c08b9b..6283f85 100644
--- a/chrome/browser/autofill/phone_number.h
+++ b/chrome/browser/autofill/phone_number.h
@@ -10,6 +10,7 @@
#include "base/gtest_prod_util.h"
#include "base/string16.h"
+#include "chrome/browser/autofill/autofill_type.h"
#include "chrome/browser/autofill/form_group.h"
// A form group that stores phone number information.
@@ -25,11 +26,11 @@ class PhoneNumber : public FormGroup {
virtual void GetPossibleFieldTypes(const string16& text,
FieldTypeSet* possible_types) const;
virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const;
- virtual void FindInfoMatches(const AutofillType& type,
+ virtual void FindInfoMatches(AutofillFieldType type,
const string16& info,
std::vector<string16>* matched_text) const;
- virtual string16 GetFieldText(const AutofillType& type) const;
- virtual void SetInfo(const AutofillType& type, const string16& value);
+ virtual string16 GetFieldText(AutofillFieldType type) const;
+ virtual void SetInfo(AutofillFieldType type, const string16& value);
// Parses |value| to extract the components of a phone number. |number|
// returns the trailing 7 digits, |city_code| returns the next 3 digits, and