Index: third_party/WebKit/Source/core/workers/WorkerBackingThread.h |
diff --git a/third_party/WebKit/Source/core/workers/WorkerBackingThread.h b/third_party/WebKit/Source/core/workers/WorkerBackingThread.h |
index afbc4a0509ac1bdcb64a2d2d4975bd60f1734183..bc1ec10826a8b20135cf278c49ce870f2e37ea75 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.h |
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.h |
@@ -14,6 +14,7 @@ |
namespace blink { |
+class WaitableEvent; |
class WebThread; |
class WebThreadSupportingGC; |
@@ -68,7 +69,8 @@ private: |
WorkerBackingThread(const char* name, bool shouldCallGCOnShutdown); |
WorkerBackingThread(WebThread*, bool shouldCallGCOnSHutdown); |
void initialize(); |
- void shutdown(); |
+ void shutdown(WaitableEvent* doneEvent = nullptr); |
+ void signalShutdownAndWait(); |
// Protects |m_workerScriptCount|. |
Mutex m_mutex; |