| Index: content/common/service_worker/service_worker_types_traits.h
|
| diff --git a/content/common/service_worker/service_worker_types_traits.h b/content/common/service_worker/service_worker_types_traits.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..18910a52444c8fe20bb4c84d5bb4764bd24f2da5
|
| --- /dev/null
|
| +++ b/content/common/service_worker/service_worker_types_traits.h
|
| @@ -0,0 +1,24 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_
|
| +#define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_
|
| +
|
| +#include "content/common/service_worker/service_worker_types.mojom.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +template <>
|
| +struct EnumTraits<content::mojom::ServiceWorkerProviderType,
|
| + content::ServiceWorkerProviderType> {
|
| + static content::mojom::ServiceWorkerProviderType ToMojom(
|
| + content::ServiceWorkerProviderType input);
|
| +
|
| + static bool FromMojom(content::mojom::ServiceWorkerProviderType input,
|
| + content::ServiceWorkerProviderType* out);
|
| +};
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_
|
|
|