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

Unified Diff: webkit/api/src/WebSharedWorkerImpl.cpp

Issue 372047: Fixed worker startup issue (Closed)
Patch Set: Removed tests to a separate patch. Created 11 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: webkit/api/src/WebSharedWorkerImpl.cpp
diff --git a/webkit/api/src/WebSharedWorkerImpl.cpp b/webkit/api/src/WebSharedWorkerImpl.cpp
index af76c2a79dc71baff6781842abd381c8aa3c6aeb..dfce4012c9e7c196e77bd0c657e8827f8c4695f1 100644
--- a/webkit/api/src/WebSharedWorkerImpl.cpp
+++ b/webkit/api/src/WebSharedWorkerImpl.cpp
@@ -66,7 +66,7 @@ bool WebSharedWorkerImpl::isStarted()
return workerThread();
}
-void WebSharedWorkerImpl::connect(WebMessagePortChannel* webChannel)
+void WebSharedWorkerImpl::connect(WebMessagePortChannel* webChannel, ConnectListener* listener)
{
// Convert the WebMessagePortChanel to a WebCore::MessagePortChannel.
RefPtr<PlatformMessagePortChannel> platform_channel =
@@ -77,6 +77,8 @@ void WebSharedWorkerImpl::connect(WebMessagePortChannel* webChannel)
workerThread()->runLoop().postTask(
createCallbackTask(&connectTask, this, channel.release()));
+ if (listener)
+ listener->connected();
}
void WebSharedWorkerImpl::connectTask(ScriptExecutionContext* context, WebSharedWorkerImpl* worker, PassOwnPtr<MessagePortChannel> channel)
« webkit/api/public/WebSharedWorker.h ('K') | « webkit/api/src/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698