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 | |
12 namespace blink { | |
13 | |
14 class PaymentInstrument; | |
15 class ScriptPromise; | |
16 | |
17 class MODULES_EXPORT PaymentInstruments final | |
please use gerrit instead
2017/03/28 16:33:29
#include "modules/ModulesExport.h"
zino
2017/03/29 15:51:23
The header file was already included :)
| |
18 : public GarbageCollectedFinalized<PaymentInstruments>, | |
please use gerrit instead
2017/03/28 16:33:29
#include "platform/heap/GarbageCollected.h"
zino
2017/03/29 15:51:23
I think #include "platform/heap/Handle.h" is enoug
| |
19 public ScriptWrappable { | |
20 DEFINE_WRAPPERTYPEINFO(); | |
21 WTF_MAKE_NONCOPYABLE(PaymentInstruments); | |
please use gerrit instead
2017/03/28 16:33:29
#include "platform/wtf/Noncopyable.h"
zino
2017/03/29 15:51:23
Done.
| |
22 | |
23 DECLARE_TRACE(); | |
please use gerrit instead
2017/03/28 16:33:29
I believe DECLARE_TRACE() should be public.
Also:
zino
2017/03/29 15:51:23
It's my mistake. Done!
| |
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); | |
please use gerrit instead
2017/03/28 16:33:29
#include "platform/wtf/text/WTFString.h"
zino
2017/03/29 15:51:23
Done.
| |
32 ScriptPromise set(const String& instrumentKey, | |
33 const PaymentInstrument& details); | |
34 }; | |
35 | |
36 } // namespace blink | |
37 | |
38 #endif // PaymentInstruments_h | |
OLD | NEW |