| Index: public/web/WebServiceWorkerContextProxy.h
|
| diff --git a/public/web/WebServiceWorkerContextProxy.h b/public/web/WebServiceWorkerContextProxy.h
|
| index 6c6328d0bff08558f93467121aed29e30a8854f9..31be77ca815bca01534f3eae34acff58c339fddd 100644
|
| --- a/public/web/WebServiceWorkerContextProxy.h
|
| +++ b/public/web/WebServiceWorkerContextProxy.h
|
| @@ -33,6 +33,13 @@
|
|
|
| #include "public/platform/WebMessagePortChannel.h"
|
|
|
| +namespace v8 {
|
| +class Context;
|
| +class Isolate;
|
| +template <class T>
|
| +class Handle;
|
| +}
|
| +
|
| namespace blink {
|
|
|
| class WebServiceWorkerRequest;
|
| @@ -56,6 +63,11 @@ public:
|
| // Once the ServiceWorker has finished handling the sync event
|
| // didHandleSyncEvent is called on the context client.
|
| virtual void dispatchSyncEvent(int syncEventID) = 0;
|
| +
|
| + // Returns the raw v8 context for the Service Worker. This must be called
|
| + // with an active HandleScope, and the handle is non-null in non-cleanup
|
| + // tasks from workerContextStarted() to willDestroyWorkerContext().
|
| + virtual v8::Handle<v8::Context> v8Context() = 0;
|
| };
|
|
|
| } // namespace blink
|
|
|