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

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

Issue 2337253005: Worker: Canonicalize names of WorkerThread lifecycle events in WorkerReportingProxy (Closed)
Patch Set: fix comments Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 af0cebd6650314f6fb54e81aef54aa3245134db8..4666ddb939f51af5b179cdcfaed6ff7d09de361c 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
@@ -244,24 +244,24 @@ void WebSharedWorkerImpl::postMessageToPageInspectorOnMainThread(const String& m
m_workerInspectorProxy->dispatchMessageFromWorker(message);
}
-void WebSharedWorkerImpl::workerGlobalScopeClosed()
+void WebSharedWorkerImpl::didCloseWorkerGlobalScope()
{
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&WebSharedWorkerImpl::workerGlobalScopeClosedOnMainThread, crossThreadUnretained(this)));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&WebSharedWorkerImpl::didCloseWorkerGlobalScopeOnMainThread, crossThreadUnretained(this)));
}
-void WebSharedWorkerImpl::workerGlobalScopeClosedOnMainThread()
+void WebSharedWorkerImpl::didCloseWorkerGlobalScopeOnMainThread()
{
m_client->workerContextClosed();
terminateWorkerThread();
}
-void WebSharedWorkerImpl::workerThreadTerminated()
+void WebSharedWorkerImpl::didTerminateWorkerThread()
{
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&WebSharedWorkerImpl::workerThreadTerminatedOnMainThread, crossThreadUnretained(this)));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&WebSharedWorkerImpl::didTerminateWorkerThreadOnMainThread, crossThreadUnretained(this)));
}
-void WebSharedWorkerImpl::workerThreadTerminatedOnMainThread()
+void WebSharedWorkerImpl::didTerminateWorkerThreadOnMainThread()
{
m_client->workerContextDestroyed();
// The lifetime of this proxy is controlled by the worker context.
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698