Index: Source/web/WebEmbeddedWorkerImpl.cpp |
diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp |
index dc692bc3cf5f36dbcdbd0432c74ab99b79fbce80..fff37fdd492400d7c2f4c3040a359751267a925b 100644 |
--- a/Source/web/WebEmbeddedWorkerImpl.cpp |
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp |
@@ -47,6 +47,7 @@ |
#include "core/workers/WorkerScriptLoader.h" |
#include "core/workers/WorkerScriptLoaderClient.h" |
#include "core/workers/WorkerThreadStartupData.h" |
+#include "heap/Handle.h" |
#include "modules/serviceworkers/ServiceWorkerThread.h" |
#include "platform/NotImplemented.h" |
#include "platform/SharedBuffer.h" |
@@ -96,7 +97,7 @@ private: |
{ |
} |
- RefPtr<WorkerScriptLoader> m_scriptLoader; |
+ RefPtrWillBePersistent<WorkerScriptLoader> m_scriptLoader; |
Closure m_callback; |
}; |
@@ -236,7 +237,7 @@ void WebEmbeddedWorkerImpl::onScriptLoaderFinished() |
providePermissionClientToWorker(workerClients.get(), m_permissionClient.release()); |
provideServiceWorkerGlobalScopeClientToWorker(workerClients.get(), ServiceWorkerGlobalScopeClientImpl::create(m_workerContextClient.release())); |
- OwnPtr<WorkerThreadStartupData> startupData = |
+ OwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData = |
WorkerThreadStartupData::create( |
m_mainScriptLoader->url(), |
m_workerStartData.userAgent, |