Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: chrome/browser/extensions/api/autofill_private/autofill_util.h

Issue 2028903002: Update Autofill Private API to provide a list of available countries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 { 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 CountryEntryList = std::vector<api::autofill_private::CountryEntry>;
26 using CreditCardEntryList = std::vector<api::autofill_private::CreditCardEntry>; 27 using CreditCardEntryList = std::vector<api::autofill_private::CreditCardEntry>;
27 28
28 // Uses |personal_data| to generate a list of up-to-date AddressEntry objects. 29 // Uses |personal_data| to generate a list of up-to-date AddressEntry objects.
29 AddressEntryList GenerateAddressList( 30 AddressEntryList GenerateAddressList(
30 const autofill::PersonalDataManager& personal_data); 31 const autofill::PersonalDataManager& personal_data);
31 32
33 // Uses |personal_data| to generate a list of up-to-date CountryEntry objects.
34 CountryEntryList GenerateCountryList(
35 const autofill::PersonalDataManager& personal_data);
36
32 // Uses |personal_data| to generate a list of up-to-date CreditCardEntry 37 // Uses |personal_data| to generate a list of up-to-date CreditCardEntry
33 // objects. 38 // objects.
34 CreditCardEntryList GenerateCreditCardList( 39 CreditCardEntryList GenerateCreditCardList(
35 const autofill::PersonalDataManager& personal_data); 40 const autofill::PersonalDataManager& personal_data);
36 41
37 } // namespace autofill_util 42 } // namespace autofill_util
38 43
39 } // namespace extensions 44 } // namespace extensions
40 45
41 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_ 46 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698