| Index: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerStructTraits.h
|
| diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerStructTraits.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerStructTraits.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1488b8ddd2e7213d359d2078209288a0c4ac5c3a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerStructTraits.h
|
| @@ -0,0 +1,21 @@
|
| +// 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 WebServiceWorkerEventResultStructTraits_h
|
| +#define WebServiceWorkerEventResultStructTraits_h
|
| +
|
| +#include "public/platform/modules/serviceworker/service_worker_event_status.mojom-blink.h"
|
| +#include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +template <>
|
| +struct EnumTraits<blink::mojom::blink::ServiceWorkerEventStatus, blink::WebServiceWorkerEventResult> {
|
| + static blink::mojom::blink::ServiceWorkerEventStatus ToMojom(blink::WebServiceWorkerEventResult input);
|
| + static bool FromMojom(blink::mojom::blink::ServiceWorkerEventStatus input, blink::WebServiceWorkerEventResult* output);
|
| +};
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif
|
|
|