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

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

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: At most INT_MAX sections in manifest and fingperints in section Created 3 years, 10 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/android/payment_manifest_parser.mojom
diff --git a/components/payments/content/android/payment_manifest_parser.mojom b/components/payments/content/android/payment_manifest_parser.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..743c88fe1279b5627b87e8fafed4ed6a49197f63
--- /dev/null
+++ b/components/payments/content/android/payment_manifest_parser.mojom
@@ -0,0 +1,17 @@
+// 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;
+
+struct PaymentManifestSection {
+ string package_name;
+ // Optional version number. 0 if not defined.
+ int64 version;
+ array<string> sha256_cert_fingerprints;
palmer 2017/03/03 22:56:31 Is it possible to express a tighter type-fit, e.g.
please use gerrit instead 2017/03/09 18:05:33 Tightened the type. Added a comment on what this a
+};
+
+interface PaymentManifestParser {
+ Parse(string content) => (array<PaymentManifestSection> manifest);
+};

Powered by Google App Engine
This is Rietveld 408576698