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

Unified Diff: chrome/common/extensions/api/autofill_private.idl

Issue 1957043002: Separate the listeners and getters for the Autofill Private API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill-lists.gitbr
Patch Set: update histogram.xml and test Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/api_test/autofill_private/test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/autofill_private.idl
diff --git a/chrome/common/extensions/api/autofill_private.idl b/chrome/common/extensions/api/autofill_private.idl
index 43edb3d0d28b0d8ae94490cc04db2a3f95f22b0c..b70b6496ca96e97d99ad33abb558e745ddcd348d 100644
--- a/chrome/common/extensions/api/autofill_private.idl
+++ b/chrome/common/extensions/api/autofill_private.idl
@@ -165,10 +165,11 @@ namespace autofillPrivate {
DOMString countryCode;
};
- callback GetAddressComponentsCallback =
- void(AddressComponents components);
+ callback GetAddressComponentsCallback = void(AddressComponents components);
+ callback GetAddressListCallback = void(AddressEntry[] entries);
callback ValidatePhoneNumbersCallback =
void(DOMString[] validatedPhoneNumbers);
+ callback GetCreditCardListCallback = void(CreditCardEntry[] entries);
interface Functions {
// Saves the given address. If |address| has an empty string as its ID, it
@@ -186,6 +187,10 @@ namespace autofillPrivate {
static void getAddressComponents(DOMString countryCode,
GetAddressComponentsCallback callback);
+ // Gets the list of addresses.
+ // |callback|: Callback which will be called with the list of addresses.
+ static void getAddressList(GetAddressListCallback callback);
+
// Saves the given credit card. If |card| has an empty string as its
// ID, it will be assigned a new one and added as a new entry.
//
@@ -206,6 +211,10 @@ namespace autofillPrivate {
static void validatePhoneNumbers(ValidatePhoneParams params,
ValidatePhoneNumbersCallback callback);
+ // Gets the list of credit cards.
+ // |callback|: Callback which will be called with the list of credit cards.
+ static void getCreditCardList(GetCreditCardListCallback callback);
+
// Clears the data associated with a wallet card which was saved
// locally so that the saved copy is masked (e.g., "Card ending
// in 1234").
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/api_test/autofill_private/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698