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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..96c3d3cb6d3aa55246426b9f94f10d021609b658 |
--- /dev/null |
+++ b/components/payments/content/payment_manifest_parser.mojom |
@@ -0,0 +1,25 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+[JavaPackage="org.chromium.payments.mojom"] |
+module payments.mojom; |
+ |
+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 |
+ // app. |
+ array<array<uint8, 32>> fingerprints; |
+}; |
+ |
+interface PaymentManifestParser { |
+ ParsePaymentMethodManifest(string content) |
+ => (array<url.mojom.Url> webAppManifestUrls); |
+ ParseWebAppManifest(string content) |
+ => (array<WebAppManifestSection> manifest); |
+}; |