| OLD | NEW | 
|---|
| 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 import "url/mojo/url.mojom"; | 8 import "url/mojo/url.mojom"; | 
| 9 | 9 | 
| 10 struct WebAppManifestSection { | 10 struct WebAppManifestSection { | 
| 11   // The package name of the app. | 11   // The package name of the app. | 
| 12   string id; | 12   string id; | 
| 13   // Minimum version number of the app. | 13   // Minimum version number of the app. | 
| 14   int64 min_version; | 14   int64 min_version; | 
| 15   // 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 | 
| 16   // app. | 16   // app. | 
| 17   array<array<uint8, 32>> fingerprints; | 17   array<array<uint8, 32>> fingerprints; | 
| 18 }; | 18 }; | 
| 19 | 19 | 
| 20 interface PaymentManifestParser { | 20 interface PaymentManifestParser { | 
| 21   ParsePaymentMethodManifest(string content) | 21   ParsePaymentMethodManifest(string content) | 
| 22       => (array<url.mojom.Url> webAppManifestUrls); | 22       => (array<url.mojom.Url> webAppManifestUrls); | 
| 23   ParseWebAppManifest(string content) | 23   ParseWebAppManifest(string content) | 
| 24       => (array<WebAppManifestSection> manifest); | 24       => (array<WebAppManifestSection> manifest); | 
| 25 }; | 25 }; | 
| OLD | NEW | 
|---|