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

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp

Issue 2539443004: Worker: Move ParentFrameTaskRunners from WorkerReportingProxy to ObjectProxy (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/web/WebSharedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
index 0167d8cd8018dc2a616d9ca8eb0d67bfad65a180..314c1eed6d266f4039d1d43165291b25a0046d30 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
@@ -250,13 +250,8 @@ void WebSharedWorkerImpl::postMessageToPageInspectorOnMainThread(
m_workerInspectorProxy->dispatchMessageFromWorker(message);
}
-ParentFrameTaskRunners* WebSharedWorkerImpl::getParentFrameTaskRunners() {
- return m_parentFrameTaskRunners.get();
-}
-
void WebSharedWorkerImpl::didCloseWorkerGlobalScope() {
- getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ m_parentFrameTaskRunners->get(TaskType::Internal)
->postTask(
BLINK_FROM_HERE,
crossThreadBind(
@@ -271,8 +266,7 @@ void WebSharedWorkerImpl::didCloseWorkerGlobalScopeOnMainThread() {
}
void WebSharedWorkerImpl::didTerminateWorkerThread() {
- getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ m_parentFrameTaskRunners->get(TaskType::Internal)
->postTask(BLINK_FROM_HERE,
crossThreadBind(
&WebSharedWorkerImpl::didTerminateWorkerThreadOnMainThread,

Powered by Google App Engine
This is Rietveld 408576698