OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_ | 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_STRUCT_TRAITS_H_ |
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_ | 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_STRUCT_TRAITS_H_ |
7 | 7 |
8 #include "content/common/service_worker/service_worker_types.mojom.h" | 8 #include "content/common/service_worker/service_worker_types.mojom.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 | 11 |
12 template <> | 12 template <> |
13 struct EnumTraits<content::mojom::ServiceWorkerProviderType, | 13 struct EnumTraits<content::mojom::ServiceWorkerProviderType, |
14 content::ServiceWorkerProviderType> { | 14 content::ServiceWorkerProviderType> { |
15 static content::mojom::ServiceWorkerProviderType ToMojom( | 15 static content::mojom::ServiceWorkerProviderType ToMojom( |
16 content::ServiceWorkerProviderType input); | 16 content::ServiceWorkerProviderType input); |
17 | 17 |
18 static bool FromMojom(content::mojom::ServiceWorkerProviderType input, | 18 static bool FromMojom(content::mojom::ServiceWorkerProviderType input, |
19 content::ServiceWorkerProviderType* out); | 19 content::ServiceWorkerProviderType* out); |
20 }; | 20 }; |
21 | 21 |
22 } // namespace mojo | 22 } // namespace mojo |
23 | 23 |
24 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_ | 24 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_STRUCT_TRAITS_H_ |
OLD | NEW |