| 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_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> |
| 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/core/browser/address.h" | 17 #include "components/autofill/core/browser/address.h" |
| 18 #include "components/autofill/core/browser/autofill_data_model.h" | 18 #include "components/autofill/core/browser/autofill_data_model.h" |
| 19 #include "components/autofill/core/browser/autofill_type.h" | 19 #include "components/autofill/core/browser/autofill_type.h" |
| 20 #include "components/autofill/core/browser/contact_info.h" | 20 #include "components/autofill/core/browser/contact_info.h" |
| 21 #include "components/autofill/core/browser/phone_number.h" | 21 #include "components/autofill/core/browser/phone_number.h" |
| 22 | 22 |
| 23 namespace autofill { | 23 namespace autofill { |
| 24 | 24 |
| 25 struct FormFieldData; | |
| 26 | |
| 27 // A collection of FormGroups stored in a profile. AutofillProfile also | 25 // A collection of FormGroups stored in a profile. AutofillProfile also |
| 28 // implements the FormGroup interface so that owners of this object can request | 26 // 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 | 27 // form information from the profile, and the profile will delegate the request |
| 30 // to the requested form group type. | 28 // to the requested form group type. |
| 31 class AutofillProfile : public AutofillDataModel { | 29 class AutofillProfile : public AutofillDataModel { |
| 32 public: | 30 public: |
| 33 AutofillProfile(const std::string& guid, const std::string& origin); | 31 AutofillProfile(const std::string& guid, const std::string& origin); |
| 34 | 32 |
| 35 // For use in STL containers. | 33 // For use in STL containers. |
| 36 AutofillProfile(); | 34 AutofillProfile(); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // The BCP 47 language code that can be used to format |address_| for display. | 205 // The BCP 47 language code that can be used to format |address_| for display. |
| 208 std::string language_code_; | 206 std::string language_code_; |
| 209 }; | 207 }; |
| 210 | 208 |
| 211 // So we can compare AutofillProfiles with EXPECT_EQ(). | 209 // So we can compare AutofillProfiles with EXPECT_EQ(). |
| 212 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); | 210 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); |
| 213 | 211 |
| 214 } // namespace autofill | 212 } // namespace autofill |
| 215 | 213 |
| 216 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ | 214 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ |
| OLD | NEW |