OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #ifndef PaymentInstruments_h |
| 6 #define PaymentInstruments_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "platform/wtf/Noncopyable.h" |
| 12 #include "platform/wtf/text/WTFString.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class PaymentInstrument; |
| 17 class ScriptPromise; |
| 18 |
| 19 class MODULES_EXPORT PaymentInstruments final |
| 20 : public GarbageCollected<PaymentInstruments>, |
| 21 public ScriptWrappable { |
| 22 DEFINE_WRAPPERTYPEINFO(); |
| 23 WTF_MAKE_NONCOPYABLE(PaymentInstruments); |
| 24 |
| 25 public: |
| 26 PaymentInstruments(); |
| 27 |
| 28 ScriptPromise deleteInstrument(const String& instrumentKey); |
| 29 ScriptPromise get(const String& instrumentKey); |
| 30 ScriptPromise keys(); |
| 31 ScriptPromise has(const String& instrumentKey); |
| 32 ScriptPromise set(const String& instrumentKey, |
| 33 const PaymentInstrument& details); |
| 34 |
| 35 DECLARE_TRACE(); |
| 36 }; |
| 37 |
| 38 } // namespace blink |
| 39 |
| 40 #endif // PaymentInstruments_h |
OLD | NEW |