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

Unified Diff: content/common/service_worker/service_worker_type_converters.h

Issue 2646313002: PaymentApp: Implement invokePaymentApp() in renderer side. (Closed)
Patch Set: Created 3 years, 11 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: content/common/service_worker/service_worker_type_converters.h
diff --git a/content/common/service_worker/service_worker_type_converters.h b/content/common/service_worker/service_worker_type_converters.h
index 78c46e5ad4607f55cdbdc2b92c00f7c60b6e93e3..f7082e728fa1463f60f2759e0d979980f6549c81 100644
--- a/content/common/service_worker/service_worker_type_converters.h
+++ b/content/common/service_worker/service_worker_type_converters.h
@@ -5,7 +5,9 @@
#ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_
#define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_
+#include "components/payments/payment_app.mojom.h"
#include "content/common/service_worker/service_worker_status_code.h"
+#include "third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequestData.h"
#include "third_party/WebKit/public/platform/modules/serviceworker/service_worker_event_status.mojom.h"
namespace mojo {
@@ -17,6 +19,40 @@ struct CONTENT_EXPORT TypeConverter<content::ServiceWorkerStatusCode,
blink::mojom::ServiceWorkerEventStatus status);
};
+template <>
+struct TypeConverter<blink::WebPaymentAppRequestData,
+ payments::mojom::PaymentAppRequestDataPtr> {
+ static blink::WebPaymentAppRequestData Convert(
+ const payments::mojom::PaymentAppRequestDataPtr& input);
+};
+
+template <>
+struct TypeConverter<blink::WebPaymentMethodData,
+ payments::mojom::PaymentMethodDataPtr> {
+ static blink::WebPaymentMethodData Convert(
+ const payments::mojom::PaymentMethodDataPtr& input);
+};
+
+template <>
+struct TypeConverter<blink::WebPaymentItem, payments::mojom::PaymentItemPtr> {
+ static blink::WebPaymentItem Convert(
+ const payments::mojom::PaymentItemPtr& input);
+};
+
+template <>
+struct TypeConverter<blink::WebPaymentCurrencyAmount,
+ payments::mojom::PaymentCurrencyAmountPtr> {
+ static blink::WebPaymentCurrencyAmount Convert(
+ const payments::mojom::PaymentCurrencyAmountPtr& input);
+};
+
+template <>
+struct TypeConverter<blink::WebPaymentDetailsModifier,
+ payments::mojom::PaymentDetailsModifierPtr> {
+ static blink::WebPaymentDetailsModifier Convert(
+ const payments::mojom::PaymentDetailsModifierPtr& input);
+};
+
} // namespace
#endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698