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 #include "modules/payments/PaymentResponse.h" | 5 #include "modules/payments/PaymentResponse.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "bindings/core/v8/V8ObjectBuilder.h" | 8 #include "bindings/core/v8/V8ObjectBuilder.h" |
9 #include "modules/payments/PaymentAddress.h" | 9 #include "modules/payments/PaymentAddress.h" |
10 #include "modules/payments/PaymentCompleter.h" | 10 #include "modules/payments/PaymentCompleter.h" |
11 #include "wtf/Assertions.h" | 11 #include "wtf/Assertions.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 PaymentResponse::PaymentResponse( | 15 PaymentResponse::PaymentResponse( |
16 payments::mojom::blink::PaymentResponsePtr response, | 16 payments::mojom::blink::PaymentResponsePtr response, |
17 PaymentCompleter* paymentCompleter) | 17 PaymentCompleter* paymentCompleter) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 convertedResult = PaymentCompleter::Fail; | 66 convertedResult = PaymentCompleter::Fail; |
67 return m_paymentCompleter->complete(scriptState, convertedResult); | 67 return m_paymentCompleter->complete(scriptState, convertedResult); |
68 } | 68 } |
69 | 69 |
70 DEFINE_TRACE(PaymentResponse) { | 70 DEFINE_TRACE(PaymentResponse) { |
71 visitor->trace(m_shippingAddress); | 71 visitor->trace(m_shippingAddress); |
72 visitor->trace(m_paymentCompleter); | 72 visitor->trace(m_paymentCompleter); |
73 } | 73 } |
74 | 74 |
75 } // namespace blink | 75 } // namespace blink |
OLD | NEW |