[Web Payments] Prep changes for JNI PaymentAppService.
This patch contains two preparatory changes for exposing the C++ PaymentAppService via JNI: 1. Replace the output parameter of PaymentAppService::Create() with a separate method that callers can use to get the number of payment factories. This will make it easier for the upcoming JNI code to first query the number of factories, cache it in a delegate, and call Create() with the delegate. 2. Added two new utility helpers to deserialize Mojo objects from Java ByteBuffers. Bug: 1063118 Change-Id: Ibb7ff2fcb09e18cc30abe06f410392852bbe7307 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2129066 Commit-Queue: Danyao Wang <danyao@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#755458}
Showing
Please register or sign in to comment