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 #include "content/common/service_worker/service_worker_types_struct_traits.h" |
| 6 |
| 7 namespace mojo { |
| 8 |
| 9 content::mojom::ServiceWorkerProviderType |
| 10 EnumTraits<content::mojom::ServiceWorkerProviderType, |
| 11 content::ServiceWorkerProviderType>:: |
| 12 ToMojom(content::ServiceWorkerProviderType input) { |
| 13 return static_cast<content::mojom::ServiceWorkerProviderType>(input); |
| 14 } |
| 15 |
| 16 bool EnumTraits<content::mojom::ServiceWorkerProviderType, |
| 17 content::ServiceWorkerProviderType>:: |
| 18 FromMojom(content::mojom::ServiceWorkerProviderType input, |
| 19 content::ServiceWorkerProviderType* out) { |
| 20 *out = static_cast<content::ServiceWorkerProviderType>(input); |
| 21 return true; |
| 22 } |
| 23 |
| 24 } // namespace mojo |
OLD | NEW |