Chromium Code Reviews| 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 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); | |
|
Mathieu
2017/04/07 13:29:06
*webAppManifestUrls?
please use gerrit instead
2017/04/07 16:56:29
Done.
| |
| 23 ParseWebAppManifest(string content) | |
| 24 => (array<WebAppManifestSection> manifest); | |
| 19 }; | 25 }; |
| OLD | NEW |