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

Unified Diff: Source/core/workers/WorkerThread.h

Issue 1312583007: Introduce WorkerThread::willShutdown() Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerThread.h
diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h
index 1685abcf7afdde37cbd03a3229a6ca17e5e57cee..3289acff1ecc3b505bf911559261991b8e011fc2 100644
--- a/Source/core/workers/WorkerThread.h
+++ b/Source/core/workers/WorkerThread.h
@@ -133,6 +133,12 @@ protected:
virtual void shutdownBackingThread();
virtual v8::Isolate* initializeIsolate();
+ // willShutdown() is called just before dispoing WorkerGlobalScope and its
+ // WorkerScriptController. If you want to run any clean-up task that needs to
+ // interact with JavaScript, you should run the task in willShutdown().
+ virtual void willShutdown();
+ // willDestroyIsolate() is called after disposing WorkerGlobalScope (and its
+ // WorkerScriptController) but before dispoing an Isolate.
virtual void willDestroyIsolate();
virtual void destroyIsolate();
virtual void terminateV8Execution();
« no previous file with comments | « no previous file | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698