Index: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
index e5a2dbac9cf01f9f38f6a1b4bc42dec2fe63063d..f5fecd69b2f87eabdab1d789251fcbeb64453dc5 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
@@ -62,7 +62,7 @@ class WorkerConsole; |
class WorkerInspectorController; |
class WorkerLocation; |
class WorkerNavigator; |
-class WorkerThread; |
+class WorkerScript; |
class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData, public RefCountedWillBeNoBase<WorkerGlobalScope>, public SecurityContext, public WorkerOrWorkletGlobalScope, public WillBeHeapSupplementable<WorkerGlobalScope>, public DOMWindowBase64 { |
DEFINE_WRAPPERTYPEINFO(); |
@@ -93,7 +93,7 @@ public: |
virtual void didEvaluateWorkerScript(); |
void dispose(); |
- WorkerThread* thread() const { return m_thread; } |
+ WorkerScript* workerScript() const { return m_workerScript; } |
void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>) final; // Executes the task on context's thread asynchronously. |
@@ -153,7 +153,7 @@ public: |
DECLARE_VIRTUAL_TRACE(); |
protected: |
- WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, double timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, PassOwnPtrWillBeRawPtr<WorkerClients>); |
+ WorkerGlobalScope(const KURL&, const String& userAgent, WorkerScript*, double timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, PassOwnPtrWillBeRawPtr<WorkerClients>); |
void applyContentSecurityPolicyFromVector(const Vector<CSPHeaderAndType>& headers); |
void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) override; |
@@ -192,7 +192,7 @@ private: |
mutable UseCounter::CountBits m_deprecationWarningBits; |
OwnPtrWillBeMember<WorkerOrWorkletScriptController> m_scriptController; |
- WorkerThread* m_thread; |
+ WorkerScript* m_workerScript; |
RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController; |
bool m_closing; |