| 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)
|
|
|