Index: third_party/WebKit/Source/web/WebSharedWorkerReportingProxyImpl.h |
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerReportingProxyImpl.h b/third_party/WebKit/Source/web/WebSharedWorkerReportingProxyImpl.h |
index 2d6bdd13ef4dee00c54380d11b946ba4d4eed398..ee8d1dc54a4b8736d7cd7e159c4486920f26f9f5 100644 |
--- a/third_party/WebKit/Source/web/WebSharedWorkerReportingProxyImpl.h |
+++ b/third_party/WebKit/Source/web/WebSharedWorkerReportingProxyImpl.h |
@@ -5,7 +5,7 @@ |
#ifndef WebSharedWorkerReportingProxyImpl_h |
#define WebSharedWorkerReportingProxyImpl_h |
-#include "core/workers/ParentFrameTaskRunners.h" |
+#include "core/workers/WorkerOrWorkletGlobalScope.h" |
#include "core/workers/WorkerReportingProxy.h" |
#include "platform/heap/GarbageCollected.h" |
@@ -22,8 +22,7 @@ class WebSharedWorkerReportingProxyImpl final |
WTF_MAKE_NONCOPYABLE(WebSharedWorkerReportingProxyImpl); |
public: |
- WebSharedWorkerReportingProxyImpl(WebSharedWorkerImpl*, |
- ParentFrameTaskRunners*); |
+ explicit WebSharedWorkerReportingProxyImpl(WebSharedWorkerImpl*); |
~WebSharedWorkerReportingProxyImpl() override; |
// WorkerReportingProxy methods: |
@@ -37,6 +36,7 @@ class WebSharedWorkerReportingProxyImpl final |
const String& message, |
SourceLocation*) override; |
void postMessageToPageInspector(const WTF::String&) override; |
+ void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; |
void didEvaluateWorkerScript(bool success) override {} |
void didCloseWorkerGlobalScope() override; |
void willDestroyWorkerGlobalScope() override {} |
@@ -48,7 +48,7 @@ class WebSharedWorkerReportingProxyImpl final |
// Not owned because this outlives the reporting proxy. |
WebSharedWorkerImpl* m_worker; |
- Member<ParentFrameTaskRunners> m_parentFrameTaskRunners; |
+ CrossThreadPersistent<WorkerOrWorkletGlobalScope> m_globalScope; |
}; |
} // namespace blink |