| 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; }
|
|
|
|
|