| Index: content/common/service_worker/service_worker_types_struct_traits.cc
|
| diff --git a/content/common/service_worker/service_worker_types_struct_traits.cc b/content/common/service_worker/service_worker_types_struct_traits.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f88acbca35f1a491fca0542490316c04a3193143
|
| --- /dev/null
|
| +++ b/content/common/service_worker/service_worker_types_struct_traits.cc
|
| @@ -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.
|
| +
|
| +#include "content/common/service_worker/service_worker_types_struct_traits.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +content::mojom::ServiceWorkerProviderType
|
| +EnumTraits<content::mojom::ServiceWorkerProviderType,
|
| + content::ServiceWorkerProviderType>::
|
| + ToMojom(content::ServiceWorkerProviderType input) {
|
| + return static_cast<content::mojom::ServiceWorkerProviderType>(input);
|
| +}
|
| +
|
| +bool EnumTraits<content::mojom::ServiceWorkerProviderType,
|
| + content::ServiceWorkerProviderType>::
|
| + FromMojom(content::mojom::ServiceWorkerProviderType input,
|
| + content::ServiceWorkerProviderType* out) {
|
| + *out = static_cast<content::ServiceWorkerProviderType>(input);
|
| + return true;
|
| +}
|
| +
|
| +} // namespace mojo
|
|
|