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

Unified Diff: public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 1287103002: [Extension ServiceWorkers] Blink: Passing v8::context to extensions dispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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: public/web/modules/serviceworker/WebServiceWorkerContextClient.h
diff --git a/public/web/modules/serviceworker/WebServiceWorkerContextClient.h b/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
index b9e40bf078e13c13b55c1499efc87e989a6e3f02..10a586a2fb0f869cd61bc14a8a100eff2e82fd35 100644
--- a/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
+++ b/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
@@ -37,6 +37,7 @@
#include "public/platform/WebServiceWorkerEventResult.h"
#include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h"
#include "public/platform/WebURL.h"
+#include <v8.h>
namespace blink {
@@ -92,6 +93,9 @@ public:
// evaluation completed with no uncaught exception.
virtual void didEvaluateWorkerScript(bool success) { }
+ // Called when the worker context is initialized.
+ virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, const blink::WebURL& url) { }
+
// Called when the WorkerGlobalScope had an error or an exception.
virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { }
« Source/web/ServiceWorkerGlobalScopeProxy.cpp ('K') | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698