Implement "UpdateWorkerState" and use it
[WebKit-https.git] / Source / WebKit / Shared / WebCoreArgumentCoders.h
index 76d76e3..33596be 100644 (file)
@@ -815,6 +815,17 @@ template <> struct EnumTraits<WebCore::ServiceWorkerRegistrationState> {
         WebCore::ServiceWorkerRegistrationState::Active
     >;
 };
+    
+template <> struct EnumTraits<WebCore::ServiceWorkerState> {
+    using values = EnumValues<
+        WebCore::ServiceWorkerState,
+        WebCore::ServiceWorkerState::Installing,
+        WebCore::ServiceWorkerState::Installed,
+        WebCore::ServiceWorkerState::Activating,
+        WebCore::ServiceWorkerState::Activated,
+        WebCore::ServiceWorkerState::Redundant
+    >;
+};
 #endif
 
 } // namespace WTF