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

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

Issue 1970003004: Worker: Move close() from WorkerGlobalScope to derived interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add const Created 4 years, 7 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/WorkerGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
index 6bf6468c4aafcf62973e6e800d42b0d3892ef24f..6dd5e432d3841c1560f7c3c4e291bce5e9ac5360 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
@@ -125,7 +125,11 @@ public:
WorkerInspectorController* workerInspectorController() { return m_workerInspectorController.get(); }
- bool isClosing() { return m_closing; }
+ // Returns true when the WorkerGlobalScope is closing (e.g. via close()
+ // method). If this returns true, the worker is going to be shutdown after
+ // the current task execution. Workers that don't support close operation
+ // should always return false.
+ bool isClosing() const { return m_closing; }
double timeOrigin() const { return m_timeOrigin; }

Powered by Google App Engine
This is Rietveld 408576698