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

Unified Diff: components/payments/content/payment_manifest_parser.mojom

Issue 2802043002: Use web-app manifest format for Android payment apps. (Closed)
Patch Set: Address java comments. Created 3 years, 8 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/content/payment_manifest_parser.mojom
diff --git a/components/payments/content/payment_manifest_parser.mojom b/components/payments/content/payment_manifest_parser.mojom
index 75d4de5574ddd5c429de1c88a82f92f2f6b48fbf..96c3d3cb6d3aa55246426b9f94f10d021609b658 100644
--- a/components/payments/content/payment_manifest_parser.mojom
+++ b/components/payments/content/payment_manifest_parser.mojom
@@ -5,15 +5,21 @@
[JavaPackage="org.chromium.payments.mojom"]
module payments.mojom;
-struct PaymentManifestSection {
- string package_name;
- // Optional version number. 0 if not defined.
- int64 version;
+import "url/mojo/url.mojom";
+
+struct WebAppManifestSection {
+ // The package name of the app.
+ string id;
+ // Minimum version number of the app.
+ int64 min_version;
// The result of SHA256(signing certificate bytes) for each certificate in the
- // package.
- array<array<uint8, 32>> sha256_cert_fingerprints;
+ // app.
+ array<array<uint8, 32>> fingerprints;
};
interface PaymentManifestParser {
- Parse(string content) => (array<PaymentManifestSection> manifest);
+ ParsePaymentMethodManifest(string content)
+ => (array<url.mojom.Url> webAppManifestUrls);
+ ParseWebAppManifest(string content)
+ => (array<WebAppManifestSection> manifest);
};

Powered by Google App Engine
This is Rietveld 408576698