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 <string> | 10 #include <string> |
10 | 11 |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.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 { | 16 namespace autofill { |
17 class AutofillProfile; | 17 class AutofillProfile; |
18 class CreditCard; | 18 class CreditCard; |
19 } | 19 } |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 namespace autofill_util { | 23 namespace autofill_util { |
24 | 24 |
25 using AddressEntryList = std::vector<api::autofill_private::AddressEntry>; | 25 using AddressEntryList = std::vector<api::autofill_private::AddressEntry>; |
26 using CreditCardEntryList = std::vector<api::autofill_private::CreditCardEntry>; | 26 using CreditCardEntryList = std::vector<api::autofill_private::CreditCardEntry>; |
27 | 27 |
28 // Uses |personal_data| to generate a list of up-to-date AddressEntry objects. | 28 // Uses |personal_data| to generate a list of up-to-date AddressEntry objects. |
29 AddressEntryList GenerateAddressList( | 29 AddressEntryList GenerateAddressList( |
30 const autofill::PersonalDataManager& personal_data); | 30 const autofill::PersonalDataManager& personal_data); |
31 | 31 |
32 // 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 |
33 // objects. | 33 // objects. |
34 CreditCardEntryList GenerateCreditCardList( | 34 CreditCardEntryList GenerateCreditCardList( |
35 const autofill::PersonalDataManager& personal_data); | 35 const autofill::PersonalDataManager& personal_data); |
36 | 36 |
37 } // namespace autofill_util | 37 } // namespace autofill_util |
38 | 38 |
39 } // namespace extensions | 39 } // namespace extensions |
40 | 40 |
41 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ | 41 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ |
OLD | NEW |