| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_PROFILE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_PROFILE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_PROFILE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_PROFILE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <stddef.h> |
| 9 #include <list> | 10 #include <list> |
| 10 #include <map> | 11 #include <ostream> |
| 12 #include <string> |
| 11 #include <vector> | 13 #include <vector> |
| 12 | 14 |
| 13 #include "base/string16.h" | 15 #include "base/string16.h" |
| 14 #include "chrome/browser/autofill/address.h" | 16 #include "chrome/browser/autofill/address.h" |
| 17 #include "chrome/browser/autofill/autofill_type.h" |
| 15 #include "chrome/browser/autofill/contact_info.h" | 18 #include "chrome/browser/autofill/contact_info.h" |
| 16 #include "chrome/browser/autofill/fax_number.h" | 19 #include "chrome/browser/autofill/fax_number.h" |
| 20 #include "chrome/browser/autofill/field_types.h" |
| 17 #include "chrome/browser/autofill/form_group.h" | 21 #include "chrome/browser/autofill/form_group.h" |
| 18 #include "chrome/browser/autofill/home_phone_number.h" | 22 #include "chrome/browser/autofill/home_phone_number.h" |
| 19 | 23 |
| 20 // A collection of FormGroups stored in a profile. AutofillProfile also | 24 // A collection of FormGroups stored in a profile. AutofillProfile also |
| 21 // implements the FormGroup interface so that owners of this object can request | 25 // implements the FormGroup interface so that owners of this object can request |
| 22 // form information from the profile, and the profile will delegate the request | 26 // form information from the profile, and the profile will delegate the request |
| 23 // to the requested form group type. | 27 // to the requested form group type. |
| 24 class AutofillProfile : public FormGroup { | 28 class AutofillProfile : public FormGroup { |
| 25 public: | 29 public: |
| 26 explicit AutofillProfile(const std::string& guid); | 30 explicit AutofillProfile(const std::string& guid); |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 CompanyInfo company_; | 162 CompanyInfo company_; |
| 159 std::vector<HomePhoneNumber> home_number_; | 163 std::vector<HomePhoneNumber> home_number_; |
| 160 std::vector<FaxNumber> fax_number_; | 164 std::vector<FaxNumber> fax_number_; |
| 161 Address address_; | 165 Address address_; |
| 162 }; | 166 }; |
| 163 | 167 |
| 164 // So we can compare AutofillProfiles with EXPECT_EQ(). | 168 // So we can compare AutofillProfiles with EXPECT_EQ(). |
| 165 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); | 169 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); |
| 166 | 170 |
| 167 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_PROFILE_H_ | 171 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_PROFILE_H_ |
| OLD | NEW |