| Index: third_party/WebKit/Source/modules/payments/PaymentInstruments.idl
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentInstruments.idl b/third_party/WebKit/Source/modules/payments/PaymentInstruments.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0446f8d05ad330489f3e9c4b1b4fd5e367531278
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentInstruments.idl
|
| @@ -0,0 +1,16 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// https://w3c.github.io/webpayments-payment-apps-api/#payment-instruments
|
| +
|
| +[
|
| + RuntimeEnabled=PaymentApp,
|
| + Exposed=ServiceWorker
|
| +] interface PaymentInstruments {
|
| + [ImplementedAs=deleteInstrument] Promise<boolean> delete(DOMString instrumentKey);
|
| + Promise<PaymentInstrument> get(DOMString instrumentKey);
|
| + Promise<sequence<DOMString>> keys();
|
| + Promise<boolean> has(DOMString instrumentKey);
|
| + Promise<void> set(DOMString instrumentKey, PaymentInstrument details);
|
| +};
|
|
|