| 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/PaymentRequest.h" | 5 #include "modules/payments/PaymentRequest.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/JSONValuesForV8.h" | 8 #include "bindings/core/v8/JSONValuesForV8.h" |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| 11 #include "core/EventTypeNames.h" | 11 #include "core/EventTypeNames.h" |
| 12 #include "core/dom/DOMException.h" | 12 #include "core/dom/DOMException.h" |
| 13 #include "core/dom/ExceptionCode.h" | 13 #include "core/dom/ExceptionCode.h" |
| 14 #include "core/events/Event.h" | 14 #include "core/events/Event.h" |
| 15 #include "core/events/EventQueue.h" | 15 #include "core/events/EventQueue.h" |
| 16 #include "modules/EventTargetModulesNames.h" | 16 #include "modules/EventTargetModulesNames.h" |
| 17 #include "modules/payments/PaymentItem.h" | 17 #include "modules/payments/PaymentItem.h" |
| 18 #include "modules/payments/PaymentResponse.h" | 18 #include "modules/payments/PaymentResponse.h" |
| 19 #include "modules/payments/PaymentsValidators.h" | 19 #include "modules/payments/PaymentsValidators.h" |
| 20 #include "modules/payments/ShippingAddress.h" | 20 #include "modules/payments/ShippingAddress.h" |
| 21 #include "modules/payments/ShippingOption.h" | 21 #include "modules/payments/ShippingOption.h" |
| 22 #include "mojo/public/cpp/bindings/interface_request.h" | 22 #include "mojo/public/cpp/bindings/interface_request.h" |
| 23 #include "mojo/public/cpp/bindings/wtf_array.h" | 23 #include "mojo/public/cpp/bindings/wtf_array.h" |
| 24 #include "platform/MojoHelper.h" | 24 #include "platform/mojo/MojoHelper.h" |
| 25 #include "public/platform/ServiceRegistry.h" | 25 #include "public/platform/ServiceRegistry.h" |
| 26 #include <utility> | 26 #include <utility> |
| 27 | 27 |
| 28 namespace mojo { | 28 namespace mojo { |
| 29 | 29 |
| 30 using blink::mojom::wtf::CurrencyAmount; | 30 using blink::mojom::wtf::CurrencyAmount; |
| 31 using blink::mojom::wtf::CurrencyAmountPtr; | 31 using blink::mojom::wtf::CurrencyAmountPtr; |
| 32 using blink::mojom::wtf::PaymentDetails; | 32 using blink::mojom::wtf::PaymentDetails; |
| 33 using blink::mojom::wtf::PaymentDetailsPtr; | 33 using blink::mojom::wtf::PaymentDetailsPtr; |
| 34 using blink::mojom::wtf::PaymentItem; | 34 using blink::mojom::wtf::PaymentItem; |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 void PaymentRequest::cleanUp() | 365 void PaymentRequest::cleanUp() |
| 366 { | 366 { |
| 367 m_completeResolver.clear(); | 367 m_completeResolver.clear(); |
| 368 m_showResolver.clear(); | 368 m_showResolver.clear(); |
| 369 if (m_clientBinding.is_bound()) | 369 if (m_clientBinding.is_bound()) |
| 370 m_clientBinding.Close(); | 370 m_clientBinding.Close(); |
| 371 m_paymentProvider.reset(); | 371 m_paymentProvider.reset(); |
| 372 } | 372 } |
| 373 | 373 |
| 374 } // namespace blink | 374 } // namespace blink |
| OLD | NEW |