| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_AUTOFILL_PROFILE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_PROFILE_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_PROFILE_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_PROFILE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <iosfwd> | 10 #include <iosfwd> |
| 11 #include <list> | 11 #include <list> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/compiler_specific.h" |
| 15 #include "base/string16.h" | 16 #include "base/string16.h" |
| 16 #include "components/autofill/browser/address.h" | 17 #include "components/autofill/browser/address.h" |
| 17 #include "components/autofill/browser/autofill_type.h" | 18 #include "components/autofill/browser/autofill_type.h" |
| 18 #include "components/autofill/browser/contact_info.h" | 19 #include "components/autofill/browser/contact_info.h" |
| 19 #include "components/autofill/browser/field_types.h" | 20 #include "components/autofill/browser/field_types.h" |
| 20 #include "components/autofill/browser/form_group.h" | 21 #include "components/autofill/browser/form_group.h" |
| 21 #include "components/autofill/browser/phone_number.h" | 22 #include "components/autofill/browser/phone_number.h" |
| 23 #include "components/autofill/common/autofill_export.h" |
| 22 | 24 |
| 23 namespace autofill { | 25 namespace autofill { |
| 24 | 26 |
| 25 struct FormFieldData; | 27 struct FormFieldData; |
| 26 | 28 |
| 27 // A collection of FormGroups stored in a profile. AutofillProfile also | 29 // A collection of FormGroups stored in a profile. AutofillProfile also |
| 28 // implements the FormGroup interface so that owners of this object can request | 30 // implements the FormGroup interface so that owners of this object can request |
| 29 // form information from the profile, and the profile will delegate the request | 31 // form information from the profile, and the profile will delegate the request |
| 30 // to the requested form group type. | 32 // to the requested form group type. |
| 31 class AutofillProfile : public FormGroup { | 33 class AUTOFILL_EXPORT AutofillProfile : NON_EXPORTED_BASE(public FormGroup) { |
| 32 public: | 34 public: |
| 33 explicit AutofillProfile(const std::string& guid); | 35 explicit AutofillProfile(const std::string& guid); |
| 34 | 36 |
| 35 // For use in STL containers. | 37 // For use in STL containers. |
| 36 AutofillProfile(); | 38 AutofillProfile(); |
| 37 AutofillProfile(const AutofillProfile& profile); | 39 AutofillProfile(const AutofillProfile& profile); |
| 38 virtual ~AutofillProfile(); | 40 virtual ~AutofillProfile(); |
| 39 | 41 |
| 40 AutofillProfile& operator=(const AutofillProfile& profile); | 42 AutofillProfile& operator=(const AutofillProfile& profile); |
| 41 | 43 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 std::vector<PhoneNumber> home_number_; | 210 std::vector<PhoneNumber> home_number_; |
| 209 Address address_; | 211 Address address_; |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 // So we can compare AutofillProfiles with EXPECT_EQ(). | 214 // So we can compare AutofillProfiles with EXPECT_EQ(). |
| 213 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); | 215 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); |
| 214 | 216 |
| 215 } // namespace autofill | 217 } // namespace autofill |
| 216 | 218 |
| 217 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_PROFILE_H_ | 219 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_PROFILE_H_ |
| OLD | NEW |