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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h

Issue 1728803002: Rename WorkerThread to WorkerScript Base URL: https://chromium.googlesource.com/chromium/src.git@workerscript-controller
Patch Set: Created 4 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/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;

Powered by Google App Engine
This is Rietveld 408576698