OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "chrome/common/extensions/api/autofill_private.h" | 13 #include "chrome/common/extensions/api/autofill_private.h" |
14 #include "components/autofill/core/browser/personal_data_manager.h" | 14 #include "components/autofill/core/browser/personal_data_manager.h" |
15 | 15 |
16 namespace autofill { | |
17 class AutofillProfile; | |
18 class CreditCard; | |
19 } | |
20 | |
21 namespace extensions { | 16 namespace extensions { |
22 | 17 |
23 namespace autofill_util { | 18 namespace autofill_util { |
24 | 19 |
25 using AddressEntryList = std::vector<api::autofill_private::AddressEntry>; | 20 using AddressEntryList = std::vector<api::autofill_private::AddressEntry>; |
26 using CountryEntryList = std::vector<api::autofill_private::CountryEntry>; | 21 using CountryEntryList = std::vector<api::autofill_private::CountryEntry>; |
27 using CreditCardEntryList = std::vector<api::autofill_private::CreditCardEntry>; | 22 using CreditCardEntryList = std::vector<api::autofill_private::CreditCardEntry>; |
28 | 23 |
29 // Uses |personal_data| to generate a list of up-to-date AddressEntry objects. | 24 // Uses |personal_data| to generate a list of up-to-date AddressEntry objects. |
30 AddressEntryList GenerateAddressList( | 25 AddressEntryList GenerateAddressList( |
31 const autofill::PersonalDataManager& personal_data); | 26 const autofill::PersonalDataManager& personal_data); |
32 | 27 |
33 // Uses |personal_data| to generate a list of up-to-date CountryEntry objects. | 28 // Uses |personal_data| to generate a list of up-to-date CountryEntry objects. |
34 CountryEntryList GenerateCountryList( | 29 CountryEntryList GenerateCountryList( |
35 const autofill::PersonalDataManager& personal_data); | 30 const autofill::PersonalDataManager& personal_data); |
36 | 31 |
37 // Uses |personal_data| to generate a list of up-to-date CreditCardEntry | 32 // Uses |personal_data| to generate a list of up-to-date CreditCardEntry |
38 // objects. | 33 // objects. |
39 CreditCardEntryList GenerateCreditCardList( | 34 CreditCardEntryList GenerateCreditCardList( |
40 const autofill::PersonalDataManager& personal_data); | 35 const autofill::PersonalDataManager& personal_data); |
41 | 36 |
42 } // namespace autofill_util | 37 } // namespace autofill_util |
43 | 38 |
44 } // namespace extensions | 39 } // namespace extensions |
45 | 40 |
46 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ | 41 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ |
OLD | NEW |