Chromium Code Reviews| Index: public/web/WebServiceWorkerContextClient.h |
| diff --git a/public/web/WebServiceWorkerContextClient.h b/public/web/WebServiceWorkerContextClient.h |
| index b9e40bf078e13c13b55c1499efc87e989a6e3f02..10a586a2fb0f869cd61bc14a8a100eff2e82fd35 100644 |
| --- a/public/web/WebServiceWorkerContextClient.h |
| +++ b/public/web/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) { } |
|
dcheng
2015/08/04 00:27:36
Is it necessary to plumb |context| through like th
|
| + |
| // Called when the WorkerGlobalScope had an error or an exception. |
| virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { } |