| 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/ExceptionState.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 "platform/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* payment_completer) | 17 PaymentCompleter* payment_completer) |
| 18 : method_name_(response->method_name), | 18 : method_name_(response->method_name), |
| 19 stringified_details_(response->stringified_details), | 19 stringified_details_(response->stringified_details), |
| 20 shipping_address_( | 20 shipping_address_( |
| 21 response->shipping_address | 21 response->shipping_address |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 converted_result = PaymentCompleter::kFail; | 67 converted_result = PaymentCompleter::kFail; |
| 68 return payment_completer_->Complete(script_state, converted_result); | 68 return payment_completer_->Complete(script_state, converted_result); |
| 69 } | 69 } |
| 70 | 70 |
| 71 DEFINE_TRACE(PaymentResponse) { | 71 DEFINE_TRACE(PaymentResponse) { |
| 72 visitor->Trace(shipping_address_); | 72 visitor->Trace(shipping_address_); |
| 73 visitor->Trace(payment_completer_); | 73 visitor->Trace(payment_completer_); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace blink | 76 } // namespace blink |
| OLD | NEW |