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

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

Issue 11360055: [Autofill] Rename GetInfo and SetInfo to GetRawInfo and SetRawInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder Created 8 years, 1 month 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_PHONE_NUMBER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_PHONE_NUMBER_H_
6 #define CHROME_BROWSER_AUTOFILL_PHONE_NUMBER_H_ 6 #define CHROME_BROWSER_AUTOFILL_PHONE_NUMBER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 PhoneNumber(const PhoneNumber& number); 23 PhoneNumber(const PhoneNumber& number);
24 virtual ~PhoneNumber(); 24 virtual ~PhoneNumber();
25 25
26 PhoneNumber& operator=(const PhoneNumber& number); 26 PhoneNumber& operator=(const PhoneNumber& number);
27 27
28 void set_profile(AutofillProfile* profile) { profile_ = profile; } 28 void set_profile(AutofillProfile* profile) { profile_ = profile; }
29 29
30 // FormGroup implementation: 30 // FormGroup implementation:
31 virtual void GetMatchingTypes(const string16& text, 31 virtual void GetMatchingTypes(const string16& text,
32 FieldTypeSet* matching_types) const OVERRIDE; 32 FieldTypeSet* matching_types) const OVERRIDE;
33 virtual string16 GetInfo(AutofillFieldType type) const OVERRIDE; 33 virtual string16 GetRawInfo(AutofillFieldType type) const OVERRIDE;
34 virtual void SetInfo(AutofillFieldType type, const string16& value) OVERRIDE; 34 virtual void SetRawInfo(AutofillFieldType type,
35 const string16& value) OVERRIDE;
35 virtual string16 GetCanonicalizedInfo(AutofillFieldType type) const OVERRIDE; 36 virtual string16 GetCanonicalizedInfo(AutofillFieldType type) const OVERRIDE;
36 virtual bool SetCanonicalizedInfo(AutofillFieldType type, 37 virtual bool SetCanonicalizedInfo(AutofillFieldType type,
37 const string16& value) OVERRIDE; 38 const string16& value) OVERRIDE;
38 39
39 // Size and offset of the prefix and suffix portions of phone numbers. 40 // Size and offset of the prefix and suffix portions of phone numbers.
40 static const size_t kPrefixOffset = 0; 41 static const size_t kPrefixOffset = 0;
41 static const size_t kPrefixLength = 3; 42 static const size_t kPrefixLength = 3;
42 static const size_t kSuffixOffset = 3; 43 static const size_t kSuffixOffset = 3;
43 static const size_t kSuffixLength = 4; 44 static const size_t kSuffixLength = 4;
44 45
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // The phone number. 83 // The phone number.
83 string16 number_; 84 string16 number_;
84 // Profile which stores the locale used as hint when normalizing the number. 85 // Profile which stores the locale used as hint when normalizing the number.
85 AutofillProfile* profile_; // WEAK 86 AutofillProfile* profile_; // WEAK
86 87
87 // Cached number. 88 // Cached number.
88 mutable autofill_i18n::PhoneObject cached_parsed_phone_; 89 mutable autofill_i18n::PhoneObject cached_parsed_phone_;
89 }; 90 };
90 91
91 #endif // CHROME_BROWSER_AUTOFILL_PHONE_NUMBER_H_ 92 #endif // CHROME_BROWSER_AUTOFILL_PHONE_NUMBER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_unittest.cc ('k') | chrome/browser/autofill/phone_number.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698