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

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: address falken@'s comments 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
Index: Source/core/workers/WorkerReportingProxy.h
diff --git a/Source/core/workers/WorkerReportingProxy.h b/Source/core/workers/WorkerReportingProxy.h
index b6a6f723548a736ab7d29a202f5d1186ec404982..360464f067629c09fe5a76e0e7c69707d2d31eed 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 workerScriptEvaluated(bool success) = 0;
tkent 2014/11/05 02:10:22 Please name this as |didEvaluateWorkerScript|. |w
nhiroki 2014/11/05 03:09:48 Done.
+
// Invoked when the new WorkerGlobalScope is started.
virtual void workerGlobalScopeStarted(WorkerGlobalScope*) = 0;

Powered by Google App Engine
This is Rietveld 408576698