summaryrefslogtreecommitdiffstats
path: root/webkit/api/public/WebSharedWorker.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/api/public/WebSharedWorker.h')
-rw-r--r--webkit/api/public/WebSharedWorker.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/webkit/api/public/WebSharedWorker.h b/webkit/api/public/WebSharedWorker.h
index a580882..37f0ad6 100644
--- a/webkit/api/public/WebSharedWorker.h
+++ b/webkit/api/public/WebSharedWorker.h
@@ -37,35 +37,24 @@ namespace WebKit {
class ScriptExecutionContext;
class WebString;
class WebMessagePortChannel;
- class WebCommonWorkerClient;
class WebURL;
// This is the interface to a SharedWorker thread.
// Since SharedWorkers communicate entirely through MessagePorts this interface only contains APIs for starting up a SharedWorker.
class WebSharedWorker {
public:
- // Invoked from the worker thread to instantiate a WebSharedWorker that interacts with the WebKit worker components.
- WEBKIT_API static WebSharedWorker* create(WebCommonWorkerClient*);
-
- virtual ~WebSharedWorker() {};
+ virtual ~WebSharedWorker() {}
// Returns false if the thread hasn't been started yet (script loading has not taken place).
// FIXME(atwilson): Remove this when we move the initial script loading into the worker process.
virtual bool isStarted() = 0;
virtual void startWorkerContext(const WebURL& scriptURL,
- const WebString& name,
const WebString& userAgent,
const WebString& sourceCode) = 0;
- // Sends a connect event to the SharedWorker context.
+ // Sends a connect event to the SharedWorker thread.
virtual void connect(WebMessagePortChannel*) = 0;
-
- // Invoked to shutdown the worker when there are no more associated documents.
- virtual void terminateWorkerContext() = 0;
-
- // Notification when the WebCommonWorkerClient is destroyed.
- virtual void clientDestroyed() = 0;
};
} // namespace WebKit