Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4066)

Unified Diff: components/payments/payment_request.mojom

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: Address more comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/payments/payment_request.mojom
diff --git a/components/payments/payment_request.mojom b/components/payments/payment_request.mojom
index d8ad5833f487d3ccea1824dcca240b80d3af69de..81703f5f6a42380854c707af9337fcfa0426f2f5 100644
--- a/components/payments/payment_request.mojom
+++ b/components/payments/payment_request.mojom
@@ -83,6 +83,13 @@ enum CanMakePaymentQueryResult {
QUERY_QUOTA_EXCEEDED
};
+struct NativeAndroidPaymentAppManifestSection {
+ string package_name;
+ // Optional version number. 0 if not defined.
+ int64 version;
+ array<string>? sha256_cert_fingerprints;
+};
+
interface PaymentRequestClient {
OnShippingAddressChange(PaymentAddress address);
OnShippingOptionChange(string shipping_option_id);
@@ -91,6 +98,8 @@ interface PaymentRequestClient {
OnComplete();
OnAbort(bool aborted_successfully);
OnCanMakePayment(CanMakePaymentQueryResult result);
+ ParsePaymentManifest(string content)
+ => (array<NativeAndroidPaymentAppManifestSection>? manifest);
};
struct PaymentItem {

Powered by Google App Engine
This is Rietveld 408576698