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

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

Issue 692003002: ServiceWorker: Registering a malformed script should fail [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | « Source/core/workers/WorkerObjectProxy.h ('k') | 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/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;
« no previous file with comments | « Source/core/workers/WorkerObjectProxy.h ('k') | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698