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

Unified Diff: public/web/WebServiceWorkerContextClient.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 tkent@'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: public/web/WebServiceWorkerContextClient.h
diff --git a/public/web/WebServiceWorkerContextClient.h b/public/web/WebServiceWorkerContextClient.h
index d5996f815d4ad6f8a30b4ebe801df36f45ca3868..bae58038cce421384ff2d3ecd4059fa5896ad789 100644
--- a/public/web/WebServiceWorkerContextClient.h
+++ b/public/web/WebServiceWorkerContextClient.h
@@ -94,6 +94,10 @@ public:
// This is called on the main thread.
virtual void workerContextFailedToStart() { }
+ // Called when the worker script is evaluated. |success| is true if the
+ // evaluation completed with no uncaught exception.
+ virtual void didEvaluateWorkerScript(bool result) { }
haraken 2014/11/05 04:26:49 result => success
nhiroki 2014/11/05 05:33:40 Done.
+
// Called when the WorkerGlobalScope had an error or an exception.
virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { }
« Source/bindings/core/v8/WorkerScriptController.h ('K') | « Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698