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