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..777d91cc98b76edb3c46f7f0ab8a1c68914a92ac 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/WebPaymentAppRequest.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::WebPaymentAppRequest, |
+ payments::mojom::PaymentAppRequestPtr> { |
+ static blink::WebPaymentAppRequest Convert( |
+ const payments::mojom::PaymentAppRequestPtr& 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_ |