| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_ |
| 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_ |
| 7 | 7 |
| 8 #include "components/payments/mojom/payment_app.mojom.h" | 8 #include "components/payments/mojom/payment_app.mojom.h" |
| 9 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" | 9 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" |
| 10 #include "content/common/service_worker/service_worker_status_code.h" | 10 #include "content/common/service_worker/service_worker_status_code.h" |
| 11 #include "third_party/WebKit/public/platform/modules/payments/WebPaymentAppReque
st.h" | 11 #include "third_party/WebKit/public/platform/modules/payments/WebPaymentRequestE
ventData.h" |
| 12 #include "third_party/WebKit/public/platform/modules/serviceworker/service_worke
r_event_status.mojom.h" | 12 #include "third_party/WebKit/public/platform/modules/serviceworker/service_worke
r_event_status.mojom.h" |
| 13 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo
ntextProxy.h" | 13 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo
ntextProxy.h" |
| 14 | 14 |
| 15 namespace mojo { | 15 namespace mojo { |
| 16 | 16 |
| 17 template <> | 17 template <> |
| 18 struct CONTENT_EXPORT TypeConverter<content::ServiceWorkerStatusCode, | 18 struct CONTENT_EXPORT TypeConverter<content::ServiceWorkerStatusCode, |
| 19 blink::mojom::ServiceWorkerEventStatus> { | 19 blink::mojom::ServiceWorkerEventStatus> { |
| 20 static content::ServiceWorkerStatusCode Convert( | 20 static content::ServiceWorkerStatusCode Convert( |
| 21 blink::mojom::ServiceWorkerEventStatus status); | 21 blink::mojom::ServiceWorkerEventStatus status); |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 template <> | 24 template <> |
| 25 struct TypeConverter<blink::WebPaymentAppRequest, | 25 struct TypeConverter<blink::WebPaymentRequestEventData, |
| 26 payments::mojom::PaymentAppRequestPtr> { | 26 payments::mojom::PaymentRequestEventDataPtr> { |
| 27 static blink::WebPaymentAppRequest Convert( | 27 static blink::WebPaymentRequestEventData Convert( |
| 28 const payments::mojom::PaymentAppRequestPtr& input); | 28 const payments::mojom::PaymentRequestEventDataPtr& input); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 template <> | 31 template <> |
| 32 struct TypeConverter<blink::WebPaymentMethodData, | 32 struct TypeConverter<blink::WebPaymentMethodData, |
| 33 payments::mojom::PaymentMethodDataPtr> { | 33 payments::mojom::PaymentMethodDataPtr> { |
| 34 static blink::WebPaymentMethodData Convert( | 34 static blink::WebPaymentMethodData Convert( |
| 35 const payments::mojom::PaymentMethodDataPtr& input); | 35 const payments::mojom::PaymentMethodDataPtr& input); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 template <> | 38 template <> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 58 template <> | 58 template <> |
| 59 struct TypeConverter<blink::WebServiceWorkerContextProxy::BackgroundFetchState, | 59 struct TypeConverter<blink::WebServiceWorkerContextProxy::BackgroundFetchState, |
| 60 content::mojom::BackgroundFetchState> { | 60 content::mojom::BackgroundFetchState> { |
| 61 static blink::WebServiceWorkerContextProxy::BackgroundFetchState Convert( | 61 static blink::WebServiceWorkerContextProxy::BackgroundFetchState Convert( |
| 62 content::mojom::BackgroundFetchState input); | 62 content::mojom::BackgroundFetchState input); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace | 65 } // namespace |
| 66 | 66 |
| 67 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_ | 67 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_ |
| OLD | NEW |