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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_
11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/common/extensions/api/autofill_private.h"
14 #include "components/autofill/core/browser/personal_data_manager.h"
17 class AutofillProfile
;
21 namespace extensions
{
23 namespace autofill_util
{
25 using AddressEntryList
= std::vector
<linked_ptr
<
26 extensions::api::autofill_private::AddressEntry
> >;
27 using CreditCardEntryList
= std::vector
<linked_ptr
<
28 extensions::api::autofill_private::CreditCardEntry
> >;
30 // Uses |personal_data| to generate a list of up-to-date AddressEntry objects.
31 scoped_ptr
<AddressEntryList
> GenerateAddressList(
32 const autofill::PersonalDataManager
& personal_data
);
34 // Uses |personal_data| to generate a list of up-to-date CreditCardEntry
36 scoped_ptr
<CreditCardEntryList
> GenerateCreditCardList(
37 const autofill::PersonalDataManager
& personal_data
);
39 } // namespace autofill_util
41 } // namespace extensions
43 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_