Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / extensions / api / autofill_private / autofill_util.h
blob5d47e6501409572c6ba29644d4ee1b9de4d9b13d
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_
8 #include <map>
9 #include <string>
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"
16 namespace autofill {
17 class AutofillProfile;
18 class CreditCard;
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
35 // objects.
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_