Chromium Code Reviews| 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..74c377417e9d1cdbcc44f84e647e7e39d44a52db |
| --- /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 GarbageCollectedFinalized<PaymentInstruments>, |
|
haraken
2017/03/30 00:00:45
"Finalized" wouldn't be needed.
zino
2017/03/30 00:12:53
Done.
|
| + public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + WTF_MAKE_NONCOPYABLE(PaymentInstruments); |
| + |
| + DECLARE_TRACE(); |
|
please use gerrit instead
2017/03/29 21:30:16
Appears to still be private.
zino
2017/03/30 00:12:53
Done.
|
| + |
| + 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); |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // PaymentInstruments_h |