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

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

Issue 2481843003: Worker: Add WorkerOrWorkletGlobalScope::thread() interface (Closed)
Patch Set: Created 4 years, 1 month 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 60ed51ebff555fda5a0f437fe6663f53bec0594b..ec2c76f9e66c4e0df80affad5ea26fdd45b5c294 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
@@ -82,7 +82,12 @@ class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData,
}
KURL completeURL(const String&) const;
+
+ // WorkerOrWorkletGlobalScope
+ bool isClosing() const final { return m_closing; }
virtual void dispose();
+ WorkerThread* thread() const final { return m_thread; }
+
void exceptionUnhandled(int exceptionId);
void registerEventListener(V8AbstractEventListener*);
@@ -140,9 +145,6 @@ class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData,
return const_cast<WorkerGlobalScope*>(this);
}
- bool isClosing() const final { return m_closing; }
-
- WorkerThread* thread() const { return m_thread; }
double timeOrigin() const { return m_timeOrigin; }
WorkerSettings* workerSettings() const { return m_workerSettings.get(); }

Powered by Google App Engine
This is Rietveld 408576698