OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... | |
34 ServerFieldTypeSet* supported_types) const OVERRIDE; | 34 ServerFieldTypeSet* supported_types) const OVERRIDE; |
35 | 35 |
36 // Returns the full name, which can include up to the first, middle, and last | 36 // Returns the full name, which can include up to the first, middle, and last |
37 // name. | 37 // name. |
38 base::string16 FullName() const; | 38 base::string16 FullName() const; |
39 | 39 |
40 // Returns the middle initial if |middle_| is non-empty. Returns an empty | 40 // Returns the middle initial if |middle_| is non-empty. Returns an empty |
41 // string otherwise. | 41 // string otherwise. |
42 base::string16 MiddleInitial() const; | 42 base::string16 MiddleInitial() const; |
43 | 43 |
44 const base::string16& first() const { return first_; } | |
45 const base::string16& middle() const { return middle_; } | |
46 const base::string16& last() const { return last_; } | |
47 | |
48 // Sets |first_|, |middle_|, and |last_| to the tokenized |full|. | 44 // Sets |first_|, |middle_|, and |last_| to the tokenized |full|. |
49 // It is tokenized on a space only. | |
50 void SetFullName(const base::string16& full); | 45 void SetFullName(const base::string16& full); |
51 | 46 |
52 base::string16 first_; | 47 base::string16 first_; |
53 base::string16 middle_; | 48 base::string16 middle_; |
54 base::string16 last_; | 49 base::string16 last_; |
50 base::string16 full_name_; | |
Ilya Sherman
2014/06/03 22:53:35
Are you planning to persist this to the database a
Evan Stade
2014/06/03 23:55:35
hrkk.. that would be ideal, yes. I gather that wil
Ilya Sherman
2014/06/04 00:13:45
Rouslan was actually the last one to make such a c
| |
55 }; | 51 }; |
56 | 52 |
57 class EmailInfo : public FormGroup { | 53 class EmailInfo : public FormGroup { |
58 public: | 54 public: |
59 EmailInfo(); | 55 EmailInfo(); |
60 EmailInfo(const EmailInfo& info); | 56 EmailInfo(const EmailInfo& info); |
61 virtual ~EmailInfo(); | 57 virtual ~EmailInfo(); |
62 | 58 |
63 EmailInfo& operator=(const EmailInfo& info); | 59 EmailInfo& operator=(const EmailInfo& info); |
64 | 60 |
(...skipping 27 matching lines...) Expand all Loading... | |
92 // FormGroup: | 88 // FormGroup: |
93 virtual void GetSupportedTypes( | 89 virtual void GetSupportedTypes( |
94 ServerFieldTypeSet* supported_types) const OVERRIDE; | 90 ServerFieldTypeSet* supported_types) const OVERRIDE; |
95 | 91 |
96 base::string16 company_name_; | 92 base::string16 company_name_; |
97 }; | 93 }; |
98 | 94 |
99 } // namespace autofill | 95 } // namespace autofill |
100 | 96 |
101 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ | 97 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ |
OLD | NEW |