Index: Source/modules/serviceworkers/ServiceWorkerWindowClient.h |
diff --git a/Source/modules/serviceworkers/ServiceWorkerWindowClient.h b/Source/modules/serviceworkers/ServiceWorkerWindowClient.h |
index 399144742dab4bc85a5aefa8ecb22993890e197a..c0c714f2f173574ecfb76eb8f8435e6c909f9bd2 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerWindowClient.h |
+++ b/Source/modules/serviceworkers/ServiceWorkerWindowClient.h |
@@ -10,6 +10,7 @@ |
#include "modules/serviceworkers/ServiceWorkerClient.h" |
#include "platform/heap/Handle.h" |
#include "wtf/Forward.h" |
+#include "wtf/OwnPtr.h" |
#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -21,9 +22,9 @@ class MODULES_EXPORT ServiceWorkerWindowClient final : public ServiceWorkerClien |
DEFINE_WRAPPERTYPEINFO(); |
public: |
// To be used by CallbackPromiseAdapter. |
- typedef WebServiceWorkerClientInfo WebType; |
+ using WebType = OwnPtr<WebServiceWorkerClientInfo>; |
- static ServiceWorkerWindowClient* take(ScriptPromiseResolver*, PassOwnPtr<WebType>); |
+ static ServiceWorkerWindowClient* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerClientInfo>); |
static ServiceWorkerWindowClient* create(const WebServiceWorkerClientInfo&); |
~ServiceWorkerWindowClient() override; |