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 GarbageCollectedFinalized<PaymentInstruments>, | |
haraken
2017/03/30 00:00:45
"Finalized" wouldn't be needed.
zino
2017/03/30 00:12:53
Done.
| |
21 public ScriptWrappable { | |
22 DEFINE_WRAPPERTYPEINFO(); | |
23 WTF_MAKE_NONCOPYABLE(PaymentInstruments); | |
24 | |
25 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.
| |
26 | |
27 public: | |
28 PaymentInstruments(); | |
29 | |
30 ScriptPromise deleteInstrument(const String& instrumentKey); | |
31 ScriptPromise get(const String& instrumentKey); | |
32 ScriptPromise keys(); | |
33 ScriptPromise has(const String& instrumentKey); | |
34 ScriptPromise set(const String& instrumentKey, | |
35 const PaymentInstrument& details); | |
36 }; | |
37 | |
38 } // namespace blink | |
39 | |
40 #endif // PaymentInstruments_h | |
OLD | NEW |