| 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..164b8da9cc47a2e4dea0183749c7caf6030e4edd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.cpp
|
| @@ -0,0 +1,20 @@
|
| +// 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"
|
| +#include "wtf/Assertions.h"
|
| +#include "wtf/WTF.h"
|
| +
|
| +namespace blink {
|
| +
|
| +WorkerThreadLifecycleObserver::WorkerThreadLifecycleObserver(WorkerThreadContext* workerThreadContext)
|
| + : LifecycleObserver(workerThreadContext)
|
| + , m_wasContextDestroyedBeforeObserverCreation(workerThreadContext->m_wasContextDestroyed)
|
| +{
|
| + DCHECK(isMainThread());
|
| +}
|
| +
|
| +} // namespace blink
|
|
|