PaymentApp: Blink side of payment request event dispatching in service worker.
The payment request event is initiated from browser side when the user selects
a payment app in payment request UI. The event is dispached from browser to
renderer and then from service worker context client in renderer to blink again.
As part of implementation for it, this CL implements interfaces to dispatch the
event from renderer to blink.
This CL provides the following things.
- Add dispatchPaymentRequestEvent() & didHandlePaymentReuqestEvent() to SW.
- Expose WebPaymentAppRequestData and related Web types.
- Conversion util to convert web type to blink type.
According to Onion Soup, we should connect browser and Blink directly but
there is no way right now because ServiceWorkerContextClient and others are
still in content/renderer side. For this reason, we have no choice but to add
many of WebTypes. However, once the SW related codes in content/renderer are
moved to Blink, we will able to remove them.
BUG=
661608
TEST=PaymentAppRequestDataConversionTest.cpp
TEST=payment-request-event.html
Committed:
https://crrev.com/dbfe96630903e024d0b9fae92a8cd4859dbbbe5d
Cr-Commit-Position: refs/heads/master@{#435947}