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

Unified Diff: components/payments/content/payment_app.mojom

Issue 2811593009: [Payments] move //components/payments/content/*.mojom files to //components/payments/mojom (Closed)
Patch Set: Reland after updating chrome_content_browser_client.cc to fix android build 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 side-by-side diff with in-line comments
Download patch
Index: components/payments/content/payment_app.mojom
diff --git a/components/payments/content/payment_app.mojom b/components/payments/content/payment_app.mojom
deleted file mode 100644
index a980ddcf8a8b14ba0cfdd6c28bcb1e9a9492669f..0000000000000000000000000000000000000000
--- a/components/payments/content/payment_app.mojom
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2016 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.
-
-module payments.mojom;
-
-import "components/payments/content/payment_request.mojom";
-import "mojo/common/time.mojom";
-import "url/mojo/url.mojom";
-
-enum PaymentAppManifestError {
- NONE,
- NOT_IMPLEMENTED,
- NO_ACTIVE_WORKER,
- MANIFEST_STORAGE_OPERATION_FAILED,
-};
-
-struct PaymentAppOption {
- string name;
- string? icon;
- string id;
- array<string> enabled_methods;
-};
-
-struct PaymentAppManifest {
- string name;
- string? icon;
- array<PaymentAppOption> options;
-};
-
-interface PaymentManager {
- Init(string service_worker_scope);
- SetManifest(PaymentAppManifest payment_app_manifest)
- => (PaymentAppManifestError error);
- GetManifest()
- => (PaymentAppManifest payment_app_manifest, PaymentAppManifestError error);
-};
-
-struct PaymentAppRequest {
- url.mojom.Url origin;
- array<PaymentMethodData> methodData;
- PaymentItem total;
- array<PaymentDetailsModifier> modifiers;
- string optionId;
-};
-
-struct PaymentAppResponse {
- string method_name;
- string stringified_details;
-};
-
-// This interface is provided to pass a payment app response from payment
-// request event in renderer side to browser side by calling respondWith().
-interface PaymentAppResponseCallback {
- OnPaymentAppResponse(PaymentAppResponse response,
- mojo.common.mojom.Time dispatch_event_time);
-};

Powered by Google App Engine
This is Rietveld 408576698