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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp

Issue 2513413003: Worker: Provide a way to access parent frame task runners from a worker thread (Closed)
Patch Set: update comments 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/InProcessWorkerObjectProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
index f888b213a11a1e8c7819ce8a151033afd321675c..6bf1e577caba0a4ab64342deb4ec85eb6b8051cc 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
@@ -142,6 +142,12 @@ void InProcessWorkerObjectProxy::postMessageToPageInspector(
}
}
+ParentFrameTaskRunners*
+InProcessWorkerObjectProxy::getParentFrameTaskRunners() {
+ DCHECK(m_messagingProxy);
+ return m_messagingProxy->getParentFrameTaskRunners();
+}
+
void InProcessWorkerObjectProxy::didCreateWorkerGlobalScope(
WorkerOrWorkletGlobalScope* globalScope) {
DCHECK(!m_workerGlobalScope);
@@ -186,12 +192,6 @@ InProcessWorkerObjectProxy::InProcessWorkerObjectProxy(
m_nextIntervalInSec(kDefaultIntervalInSec),
m_maxIntervalInSec(kMaxIntervalInSec) {}
-ParentFrameTaskRunners*
-InProcessWorkerObjectProxy::getParentFrameTaskRunners() {
- DCHECK(m_messagingProxy);
- return m_messagingProxy->getParentFrameTaskRunners();
-}
-
ExecutionContext* InProcessWorkerObjectProxy::getExecutionContext() {
DCHECK(m_messagingProxy);
return m_messagingProxy->getExecutionContext();

Powered by Google App Engine
This is Rietveld 408576698