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_CORE_BROWSER_AUTOFILL_PROFILE_H_ |
6 #define COMPONENTS_AUTOFILL_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> |
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/compiler_specific.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "components/autofill/browser/address.h" | 17 #include "components/autofill/core/browser/address.h" |
18 #include "components/autofill/browser/autofill_data_model.h" | 18 #include "components/autofill/core/browser/autofill_data_model.h" |
19 #include "components/autofill/browser/autofill_type.h" | 19 #include "components/autofill/core/browser/autofill_type.h" |
20 #include "components/autofill/browser/contact_info.h" | 20 #include "components/autofill/core/browser/contact_info.h" |
21 #include "components/autofill/browser/field_types.h" | 21 #include "components/autofill/core/browser/field_types.h" |
22 #include "components/autofill/browser/phone_number.h" | 22 #include "components/autofill/core/browser/phone_number.h" |
23 | 23 |
24 namespace autofill { | 24 namespace autofill { |
25 | 25 |
26 struct FormFieldData; | 26 struct FormFieldData; |
27 | 27 |
28 // A collection of FormGroups stored in a profile. AutofillProfile also | 28 // A collection of FormGroups stored in a profile. AutofillProfile also |
29 // implements the FormGroup interface so that owners of this object can request | 29 // implements the FormGroup interface so that owners of this object can request |
30 // form information from the profile, and the profile will delegate the request | 30 // form information from the profile, and the profile will delegate the request |
31 // to the requested form group type. | 31 // to the requested form group type. |
32 class AutofillProfile : public AutofillDataModel { | 32 class AutofillProfile : public AutofillDataModel { |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 CompanyInfo company_; | 202 CompanyInfo company_; |
203 std::vector<PhoneNumber> phone_number_; | 203 std::vector<PhoneNumber> phone_number_; |
204 Address address_; | 204 Address address_; |
205 }; | 205 }; |
206 | 206 |
207 // So we can compare AutofillProfiles with EXPECT_EQ(). | 207 // So we can compare AutofillProfiles with EXPECT_EQ(). |
208 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); | 208 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); |
209 | 209 |
210 } // namespace autofill | 210 } // namespace autofill |
211 | 211 |
212 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_PROFILE_H_ | 212 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ |
OLD | NEW |