Index: third_party/WebKit/Source/modules/payments/PaymentInstruments.h |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentInstruments.h b/third_party/WebKit/Source/modules/payments/PaymentInstruments.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..415bcf9037ed7ba464ab0fb73916534a73cc8fd2 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/payments/PaymentInstruments.h |
@@ -0,0 +1,40 @@ |
+// 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. |
+ |
+#ifndef PaymentInstruments_h |
+#define PaymentInstruments_h |
+ |
+#include "bindings/core/v8/ScriptWrappable.h" |
+#include "modules/ModulesExport.h" |
+#include "platform/heap/Handle.h" |
+#include "platform/wtf/Noncopyable.h" |
+#include "platform/wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+class PaymentInstrument; |
+class ScriptPromise; |
+ |
+class MODULES_EXPORT PaymentInstruments final |
+ : public GarbageCollected<PaymentInstruments>, |
+ public ScriptWrappable { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ WTF_MAKE_NONCOPYABLE(PaymentInstruments); |
+ |
+ public: |
+ PaymentInstruments(); |
+ |
+ ScriptPromise deleteInstrument(const String& instrumentKey); |
+ ScriptPromise get(const String& instrumentKey); |
+ ScriptPromise keys(); |
+ ScriptPromise has(const String& instrumentKey); |
+ ScriptPromise set(const String& instrumentKey, |
+ const PaymentInstrument& details); |
+ |
+ DECLARE_TRACE(); |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PaymentInstruments_h |