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

Unified Diff: content/common/service_worker/service_worker_type_converters.h

Issue 1220943003: [Background Sync] Use Mojo IPC to fire background sync events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mek
Patch Set: Addressing post-lgtm review comments Created 5 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: content/common/service_worker/service_worker_type_converters.h
diff --git a/content/common/service_worker/service_worker_type_converters.h b/content/common/service_worker/service_worker_type_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..42606e34dc987d2e6e15f39f6b72f5d4e52463fc
--- /dev/null
+++ b/content/common/service_worker/service_worker_type_converters.h
@@ -0,0 +1,22 @@
+// Copyright 2015 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_TYPE_CONVERTERS_H_
+#define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_
+
+#include "content/common/service_worker/service_worker_status_code.h"
+#include "content/public/common/service_worker_event_status.mojom.h"
+
+namespace mojo {
+
+template <>
+struct CONTENT_EXPORT TypeConverter<content::ServiceWorkerStatusCode,
+ content::ServiceWorkerEventStatus> {
+ static content::ServiceWorkerStatusCode Convert(
+ content::ServiceWorkerEventStatus status);
+};
+
+} // namespace
+
+#endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698