OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 PaymentResponse_h | |
6 #define PaymentResponse_h | |
7 | |
8 #include "bindings/core/v8/ScriptPromise.h" | |
9 #include "bindings/core/v8/ScriptValue.h" | |
10 #include "bindings/core/v8/ScriptWrappable.h" | |
11 #include "platform/heap/Handle.h" | |
12 #include "wtf/Noncopyable.h" | |
13 #include "wtf/text/WTFString.h" | |
14 | |
15 namespace blink { | |
16 | |
17 class ScriptState; | |
18 | |
19 class PaymentResponse final : public GarbageCollectedFinalized<PaymentResponse>, public ScriptWrappable { | |
20 DEFINE_WRAPPERTYPEINFO(); | |
21 WTF_MAKE_NONCOPYABLE(PaymentResponse); | |
22 | |
23 public: | |
24 PaymentResponse(); | |
25 virtual ~PaymentResponse(); | |
26 | |
27 const String& methodName() const { return m_methodName; } | |
28 const ScriptValue& details() const { return m_details; } | |
29 | |
30 ScriptPromise complete(ScriptState*, bool); | |
Marijn Kruisselbrink
2016/02/18 21:59:19
Add a parameter name for this bool
please use gerrit instead
2016/02/18 22:41:33
Done.
| |
31 | |
32 DEFINE_INLINE_TRACE() {} | |
33 | |
34 private: | |
35 String m_methodName; | |
36 ScriptValue m_details; | |
Marijn Kruisselbrink
2016/02/18 21:59:19
Same issue around using ScriptValue where you prob
please use gerrit instead
2016/02/18 22:41:33
Acknowledged.
| |
37 }; | |
38 | |
39 } // namespace blink | |
40 | |
41 #endif // PaymentResponse_h | |
OLD | NEW |