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 ScriptValue details(ScriptState*) const; |
| 29 |
| 30 ScriptPromise complete(ScriptState*, bool success); |
| 31 |
| 32 DEFINE_INLINE_TRACE() {} |
| 33 |
| 34 private: |
| 35 String m_methodName; |
| 36 String m_stringifiedDetails; |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // PaymentResponse_h |
OLD | NEW |