| Index: third_party/WebKit/Source/core/workers/WorkerThread.h
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.h b/third_party/WebKit/Source/core/workers/WorkerThread.h
|
| index 3a1de279867b357456c7c840563a261077303a49..d31ff1f496119513447d8750c5c3bf15404cf50d 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerThread.h
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
|
| @@ -34,6 +34,7 @@
|
| #include "core/workers/WorkerLoaderProxy.h"
|
| #include "core/workers/WorkerThreadLifecycleObserver.h"
|
| #include "platform/LifecycleNotifier.h"
|
| +#include "platform/WaitableEvent.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/Functional.h"
|
| #include "wtf/OwnPtr.h"
|
| @@ -43,7 +44,6 @@
|
| namespace blink {
|
|
|
| class InspectorTaskRunner;
|
| -class WaitableEvent;
|
| class WorkerBackingThread;
|
| class WorkerGlobalScope;
|
| class WorkerInspectorController;
|
| @@ -152,6 +152,8 @@ public:
|
|
|
| ExitCode getExitCode();
|
|
|
| + void waitForShutdownForTesting() { m_shutdownEvent->wait(); }
|
| +
|
| protected:
|
| WorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
|
|
|
| @@ -164,6 +166,7 @@ protected:
|
|
|
| private:
|
| friend class WorkerThreadTest;
|
| + FRIEND_TEST_ALL_PREFIXES(WorkerThreadTest, StartAndTerminateOnScriptLoaded_TerminateWhileDebuggerTaskIsRunning);
|
|
|
| class ForceTerminationTask;
|
| class WorkerMicrotaskRunner;
|
| @@ -190,8 +193,6 @@ private:
|
| void performDebuggerTaskOnWorkerThread(std::unique_ptr<CrossThreadClosure>);
|
| void performDebuggerTaskDontWaitOnWorkerThread();
|
|
|
| - void setForceTerminationDelayInMsForTesting(long long forceTerminationDelayInMs) { m_forceTerminationDelayInMs = forceTerminationDelayInMs; }
|
| -
|
| bool m_started = false;
|
| bool m_terminated = false;
|
| bool m_readyToShutdown = false;
|
|
|