| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PaymentResponse_h | 5 #ifndef PaymentResponse_h |
| 6 #define PaymentResponse_h | 6 #define PaymentResponse_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class MODULES_EXPORT PaymentResponse final : public GarbageCollectedFinalized<Pa
ymentResponse>, public ScriptWrappable { | 23 class MODULES_EXPORT PaymentResponse final : public GarbageCollectedFinalized<Pa
ymentResponse>, public ScriptWrappable { |
| 24 DEFINE_WRAPPERTYPEINFO(); | 24 DEFINE_WRAPPERTYPEINFO(); |
| 25 WTF_MAKE_NONCOPYABLE(PaymentResponse); | 25 WTF_MAKE_NONCOPYABLE(PaymentResponse); |
| 26 | 26 |
| 27 public: | 27 public: |
| 28 PaymentResponse(mojom::blink::PaymentResponsePtr, PaymentCompleter*); | 28 PaymentResponse(mojom::blink::PaymentResponsePtr, PaymentCompleter*); |
| 29 virtual ~PaymentResponse(); | 29 virtual ~PaymentResponse(); |
| 30 | 30 |
| 31 const String& methodName() const { return m_methodName; } | 31 const String& methodName() const { return m_methodName; } |
| 32 ScriptValue details(ScriptState*, ExceptionState&) const; | 32 ScriptValue details(ScriptState*, ExceptionState&) const; |
| 33 const String& payerEmail() const { return m_payerEmail; } |
| 34 const String& payerPhone() const { return m_payerPhone; } |
| 33 | 35 |
| 34 ScriptPromise complete(ScriptState*, bool success); | 36 ScriptPromise complete(ScriptState*, bool success); |
| 35 | 37 |
| 36 DECLARE_TRACE(); | 38 DECLARE_TRACE(); |
| 37 | 39 |
| 38 private: | 40 private: |
| 39 String m_methodName; | 41 String m_methodName; |
| 40 String m_stringifiedDetails; | 42 String m_stringifiedDetails; |
| 43 String m_payerEmail; |
| 44 String m_payerPhone; |
| 41 Member<PaymentCompleter> m_paymentCompleter; | 45 Member<PaymentCompleter> m_paymentCompleter; |
| 42 }; | 46 }; |
| 43 | 47 |
| 44 } // namespace blink | 48 } // namespace blink |
| 45 | 49 |
| 46 #endif // PaymentResponse_h | 50 #endif // PaymentResponse_h |
| OLD | NEW |