Index: third_party/WebKit/Source/core/workers/WorkerReportingProxy.h |
diff --git a/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h b/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h |
index 806dca267487443bb921ae21ed1bfc7667a0530a..ed0e80b598ec69428df0208e9fdc7150d0c09a84 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h |
+++ b/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h |
@@ -52,9 +52,6 @@ public: |
virtual void reportConsoleMessage(MessageSource, MessageLevel, const String& message, SourceLocation*) = 0; |
virtual void postMessageToPageInspector(const String&) = 0; |
- // Invoked when the worker script or imported script is loaded. |
- virtual void didLoadWorkerScript(size_t scriptSize, size_t cachedMetadataSize) { } |
- |
// Invoked when the new WorkerGlobalScope is created. This is called after |
// didLoadWorkerScript(). |
virtual void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) { } |
@@ -63,9 +60,16 @@ public: |
// didCreateWorkerGlobalScope(). |
virtual void didInitializeWorkerContext() { } |
+ // Invoked when the worker script is about to be evaluated. This is called |
+ // after didInitializeWorkerContext(). |
+ virtual void willEvaluateWorkerScript(size_t scriptSize, size_t cachedMetadataSize) { } |
+ |
+ // Invoked when an imported script is about to be evaluated. This is called |
+ // after willEvaluateWorkerScript(). |
+ virtual void willEvaluateImportedScript(size_t scriptSize, size_t cachedMetadataSize) { } |
+ |
// Invoked when the worker script is evaluated. |success| is true if the |
- // evaluation completed with no uncaught exception. This is called after |
- // didInitializeWorkerContext(). |
+ // evaluation completed with no uncaught exception. |
virtual void didEvaluateWorkerScript(bool success) = 0; |
// Invoked when close() is invoked on the worker context. |