| Index: third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.cpp b/third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5e42591c586bf969326d564d0c44062163fee372
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.cpp
|
| @@ -0,0 +1,19 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "core/workers/WorkerThreadLifecycleObserver.h"
|
| +
|
| +#include "core/workers/WorkerThread.h"
|
| +
|
| +namespace blink {
|
| +
|
| +WorkerThreadLifecycleObserver::WorkerThreadLifecycleObserver(WorkerThread* workerThread)
|
| + : LifecycleObserver(workerThread->workerThreadContext()) { }
|
| +
|
| +bool WorkerThreadLifecycleObserver::isWorkerThreadTerminated() const
|
| +{
|
| + return !lifecycleContext();
|
| +}
|
| +
|
| +} // namespace blink
|
|
|