PaymentHandler: Implement AbortPaymentEvent in content side

Desktop / Chromium - Jinho Bang [samsung.com] - 9 August 2017 15:11 EDT

The AbortPaymentEvent is used to attempt to abort a payment request in progress.

Related spec change: https://github.com/w3c/payment-handler/pull/170

Bug: 736745 Test: payment_app_provider_impl_unittest.cc, payment_app_browsertest.cc Change-Id: I7bbec0cb362c98c7c25518edf405a1a5a96241b9 Reviewed-on: https://chromium-review.googlesource.com/600748

22ff05c PaymentHandler: Implement AbortPaymentEvent in content side.
.../browser/payments/payment_app_browsertest.cc | 50 ++++++++++++++--
.../payments/payment_app_content_unittest_base.cc | 8 +++
.../browser/payments/payment_app_provider_impl.cc | 69 +++++++++++++++++++---
.../browser/payments/payment_app_provider_impl.h | 5 +-
.../payments/payment_app_provider_impl_unittest.cc | 38 ++++++++++--
...browser_side_service_worker_event_dispatcher.cc | 7 +++
.../browser_side_service_worker_event_dispatcher.h | 4 ++
.../service_worker/embedded_worker_test_helper.cc | 28 +++++++++
.../service_worker/embedded_worker_test_helper.h | 8 +++
.../service_worker/service_worker_metrics.cc | 7 +++
.../service_worker/service_worker_metrics.h | 1 +
.../service_worker_event_dispatcher.mojom | 5 ++
content/public/browser/payment_app_provider.h | 7 ++-
.../service_worker_context_client.cc | 45 ++++++++++++++
.../service_worker/service_worker_context_client.h | 10 ++++
content/test/data/payments/payment_app.js | 4 ++
.../platform/modules/payments/payment_app.mojom | 6 +-
tools/metrics/histograms/enums.xml | 1 +
tools/metrics/histograms/histograms.xml | 9 +++
19 files changed, 287 insertions(+), 25 deletions(-)

Upstream: git.chromium.org


  • Share