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

Side by Side Diff: components/autofill/core/browser/autofill_profile.h

Issue 399003002: Parse full name set in chrome://settings/autofill (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stop breaking things Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_AUTOFILL_PROFILE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <iosfwd> 10 #include <iosfwd>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual base::string16 GetInfoForVariant( 57 virtual base::string16 GetInfoForVariant(
58 const AutofillType& type, 58 const AutofillType& type,
59 size_t variant, 59 size_t variant,
60 const std::string& app_locale) const OVERRIDE; 60 const std::string& app_locale) const OVERRIDE;
61 61
62 // Multi-value equivalents to |GetInfo| and |SetInfo|. 62 // Multi-value equivalents to |GetInfo| and |SetInfo|.
63 void SetRawMultiInfo(ServerFieldType type, 63 void SetRawMultiInfo(ServerFieldType type,
64 const std::vector<base::string16>& values); 64 const std::vector<base::string16>& values);
65 void GetRawMultiInfo(ServerFieldType type, 65 void GetRawMultiInfo(ServerFieldType type,
66 std::vector<base::string16>* values) const; 66 std::vector<base::string16>* values) const;
67 void SetMultiInfo(const AutofillType& type,
68 const std::vector<base::string16>& values,
69 const std::string& app_locale);
67 void GetMultiInfo(const AutofillType& type, 70 void GetMultiInfo(const AutofillType& type,
68 const std::string& app_locale, 71 const std::string& app_locale,
69 std::vector<base::string16>* values) const; 72 std::vector<base::string16>* values) const;
70 73
71 // Returns true if there are no values (field types) set. 74 // Returns true if there are no values (field types) set.
72 bool IsEmpty(const std::string& app_locale) const; 75 bool IsEmpty(const std::string& app_locale) const;
73 76
74 // Returns true if the |type| of data in this profile is present, but invalid. 77 // Returns true if the |type| of data in this profile is present, but invalid.
75 // Otherwise returns false. 78 // Otherwise returns false.
76 bool IsPresentButInvalid(ServerFieldType type) const; 79 bool IsPresentButInvalid(ServerFieldType type) const;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // The BCP 47 language code that can be used to format |address_| for display. 207 // The BCP 47 language code that can be used to format |address_| for display.
205 std::string language_code_; 208 std::string language_code_;
206 }; 209 };
207 210
208 // So we can compare AutofillProfiles with EXPECT_EQ(). 211 // So we can compare AutofillProfiles with EXPECT_EQ().
209 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); 212 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile);
210 213
211 } // namespace autofill 214 } // namespace autofill
212 215
213 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ 216 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698