Index: Source/core/workers/WorkerReportingProxy.h |
diff --git a/Source/core/workers/WorkerReportingProxy.h b/Source/core/workers/WorkerReportingProxy.h |
index b6a6f723548a736ab7d29a202f5d1186ec404982..6c402bf5b3f8629f3ad276fe1a3b07a839e706e7 100644 |
--- a/Source/core/workers/WorkerReportingProxy.h |
+++ b/Source/core/workers/WorkerReportingProxy.h |
@@ -40,7 +40,7 @@ namespace blink { |
class ConsoleMessage; |
class WorkerGlobalScope; |
-// APIs used by workers to report console activity. |
+// APIs used by workers to report console and worker activity. |
class WorkerReportingProxy { |
public: |
virtual ~WorkerReportingProxy() { } |
@@ -49,6 +49,10 @@ public: |
virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) = 0; |
virtual void postMessageToPageInspector(const String&) = 0; |
+ // Invoked when the worker script is evaluated. |success| is true if the |
+ // evaluation completed with no uncaught exception. |
+ virtual void didEvaluateWorkerScript(bool success) = 0; |
+ |
// Invoked when the new WorkerGlobalScope is started. |
virtual void workerGlobalScopeStarted(WorkerGlobalScope*) = 0; |