OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_TRAITS_H_ |
| 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_TRAITS_H_ |
| 7 |
| 8 #include "content/common/service_worker/service_worker_status_code.h" |
| 9 #include "third_party/WebKit/public/platform/modules/serviceworker/service_worke
r_event_status.mojom.h" |
| 10 |
| 11 namespace mojo { |
| 12 |
| 13 template <> |
| 14 struct EnumTraits<blink::mojom::ServiceWorkerEventStatus, |
| 15 content::ServiceWorkerStatusCode> { |
| 16 static blink::mojom::ServiceWorkerEventStatus ToMojom( |
| 17 content::ServiceWorkerStatusCode input); |
| 18 |
| 19 static bool FromMojom(blink::mojom::ServiceWorkerEventStatus input, |
| 20 content::ServiceWorkerStatusCode* out); |
| 21 }; |
| 22 |
| 23 } // namespace mojo |
| 24 |
| 25 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_TRAITS_H_ |
OLD | NEW |