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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [JavaPackage="org.chromium.payments.mojom"] 5 [JavaPackage="org.chromium.payments.mojom"]
6 module payments.mojom; 6 module payments.mojom;
7 7
8 struct PaymentManifestSection { 8 import "url/mojo/url.mojom";
9 string package_name; 9
10 // Optional version number. 0 if not defined. 10 struct WebAppManifestSection {
11 int64 version; 11 // The package name of the app.
12 string id;
13 // Minimum version number of the app.
14 int64 min_version;
12 // The result of SHA256(signing certificate bytes) for each certificate in the 15 // The result of SHA256(signing certificate bytes) for each certificate in the
13 // package. 16 // app.
14 array<array<uint8, 32>> sha256_cert_fingerprints; 17 array<array<uint8, 32>> fingerprints;
15 }; 18 };
16 19
17 interface PaymentManifestParser { 20 interface PaymentManifestParser {
18 Parse(string content) => (array<PaymentManifestSection> manifest); 21 ParsePaymentMethodManifest(string content)
22 => (array<url.mojom.Url> webAppManifestUrls);
23 ParseWebAppManifest(string content)
24 => (array<WebAppManifestSection> manifest);
19 }; 25 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698