diff options
Diffstat (limited to 'chrome/worker')
-rw-r--r-- | chrome/worker/nativewebworker_impl.cc | 3 | ||||
-rw-r--r-- | chrome/worker/nativewebworker_impl.h | 1 | ||||
-rw-r--r-- | chrome/worker/webworkerclient_proxy.cc | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/chrome/worker/nativewebworker_impl.cc b/chrome/worker/nativewebworker_impl.cc index 1383e63..58a5c07 100644 --- a/chrome/worker/nativewebworker_impl.cc +++ b/chrome/worker/nativewebworker_impl.cc @@ -164,3 +164,6 @@ void NativeWebWorkerImpl::postMessageToWorkerContext( void NativeWebWorkerImpl::workerObjectDestroyed() { } + +void NativeWebWorkerImpl::clientDestroyed() { +} diff --git a/chrome/worker/nativewebworker_impl.h b/chrome/worker/nativewebworker_impl.h index 29d85c9..2407136 100644 --- a/chrome/worker/nativewebworker_impl.h +++ b/chrome/worker/nativewebworker_impl.h @@ -31,6 +31,7 @@ class NativeWebWorkerImpl : public WebKit::WebWorker { const WebKit::WebString& message, const WebKit::WebMessagePortChannelArray& channels); void workerObjectDestroyed(); + void clientDestroyed(); private: WebKit::WebWorkerClient* client_; diff --git a/chrome/worker/webworkerclient_proxy.cc b/chrome/worker/webworkerclient_proxy.cc index de31734..9fe0870 100644 --- a/chrome/worker/webworkerclient_proxy.cc +++ b/chrome/worker/webworkerclient_proxy.cc @@ -60,6 +60,7 @@ WebWorkerClientProxy::WebWorkerClientProxy(const GURL& url, int route_id) } WebWorkerClientProxy::~WebWorkerClientProxy() { + impl_->clientDestroyed(); WorkerThread::current()->RemoveRoute(route_id_); ChildProcess::current()->ReleaseProcess(); } |