Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1337)

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerStructTraits.h

Issue 2168513004: [DO NOT COMMIT] ServiceWorker: First touch of mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove an unnecessary file Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698