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

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerReportingProxyImpl.h

Issue 2716853002: (WIP) Worker: Merge ParentFrameTaskRunners into TaskRunnerHelper
Patch Set: WIP Created 3 years, 10 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: 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

Powered by Google App Engine
This is Rietveld 408576698