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

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

Issue 2337003002: Worker: Notify WorkerThread lifecycle events via WorkerReportingProxy (Closed)
Patch Set: fix tests 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 166163e6203501fdebb3abb2525a215b179c0d6e..46895eb2fe0f0b1bcb85872b02063a5054ae5a76 100644
--- a/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
+++ b/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
@@ -52,6 +52,9 @@ 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 worker script is evaluated. |success| is true if the
// evaluation completed with no uncaught exception.
virtual void didEvaluateWorkerScript(bool success) = 0;
@@ -60,7 +63,7 @@ public:
virtual void didInitializeWorkerContext() { }
// Invoked when the new WorkerGlobalScope is started.
- virtual void workerGlobalScopeStarted(WorkerOrWorkletGlobalScope*) = 0;
+ virtual void workerGlobalScopeStarted(WorkerOrWorkletGlobalScope*) { }
// Invoked when close() is invoked on the worker context.
virtual void workerGlobalScopeClosed() = 0;
« 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