Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.h

Issue 2025783002: Worker: Introduce an observation mechanism for WorkerThread termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delayed_task
Patch Set: maybe fix tests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.h b/third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.h
new file mode 100644
index 0000000000000000000000000000000000000000..cedea52e70701ba9cbf2642aea6842982db6dae7
--- /dev/null
+++ b/third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.h
@@ -0,0 +1,25 @@
+// 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.
+
+#ifndef WorkerThreadLifecycleObserver_h
+#define WorkerThreadLifecycleObserver_h
+
+#include "core/CoreExport.h"
+#include "platform/LifecycleObserver.h"
+
+namespace blink {
+
+class WorkerThread;
+class WorkerThreadContext;
+
+class CORE_EXPORT WorkerThreadLifecycleObserver : public LifecycleObserver<WorkerThreadContext, WorkerThreadLifecycleObserver> {
yhirano 2016/06/03 07:40:36 +comments
nhiroki 2016/06/08 09:17:45 Done.
+protected:
+ WorkerThreadLifecycleObserver(WorkerThread*);
+
+ bool isWorkerThreadTerminated() const;
yhirano 2016/06/03 07:40:36 +comments
yhirano 2016/06/03 07:40:37 On the design discussion at https://docs.google.co
nhiroki 2016/06/08 09:17:45 Oh, I missed that comment. Tweaked this function.
nhiroki 2016/06/08 09:17:45 Done.
+};
+
+} // namespace blink
+
+#endif // WorkerThreadLifecycleObserver_h

Powered by Google App Engine
This is Rietveld 408576698