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

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

Issue 2646313002: PaymentApp: Implement invokePaymentApp() in renderer side. (Closed)
Patch Set: address comments 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: 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_
« no previous file with comments | « content/common/service_worker/OWNERS ('k') | content/common/service_worker/service_worker_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698