Index: Source/web/ServiceWorkerGlobalScopeProxy.h |
diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.h b/Source/web/ServiceWorkerGlobalScopeProxy.h |
index a260dab301a97236c9d235b08fa937272565351d..cf145a9c3079987969ab92eb74a6d921f0469da2 100644 |
--- a/Source/web/ServiceWorkerGlobalScopeProxy.h |
+++ b/Source/web/ServiceWorkerGlobalScopeProxy.h |
@@ -39,6 +39,7 @@ |
namespace WebCore { |
class ExecutionContext; |
+class ScriptSourceCode; |
} |
namespace blink { |
@@ -67,6 +68,9 @@ public: |
static PassOwnPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbeddedWorkerImpl&, WebCore::ExecutionContext&, WebServiceWorkerContextClient&); |
virtual ~ServiceWorkerGlobalScopeProxy(); |
+ // Evaluates code in the worker's javascript context. (Can be passed a plain String.) |
+ void evaluate(const WebCore::ScriptSourceCode&); |
dominicc (has gone to gerrit)
2014/07/17 02:43:44
No result?
Jeffrey Yasskin
2014/07/17 16:19:32
Yeah, WorkerScriptController::evaluate() doesn't p
|
+ |
// WebServiceWorkerContextProxy overrides: |
virtual void dispatchActivateEvent(int) OVERRIDE; |
virtual void dispatchInstallEvent(int) OVERRIDE; |
@@ -74,6 +78,7 @@ public: |
virtual void dispatchMessageEvent(const WebString& message, const WebMessagePortChannelArray&) OVERRIDE; |
virtual void dispatchPushEvent(int, const WebString& data) OVERRIDE; |
virtual void dispatchSyncEvent(int) OVERRIDE; |
+ virtual v8::Handle<v8::Context> v8Context() OVERRIDE; |
// WorkerReportingProxy overrides: |
virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE; |