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

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

Issue 2355723005: Worker: Introduce WorkerReportingProxy::willEvaluateWorkerScript() (Closed)
Patch Set: fix comment Created 4 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
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.
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698