Chromium Code Reviews| Index: webkit/api/public/WebSharedWorker.h |
| diff --git a/webkit/api/public/WebSharedWorker.h b/webkit/api/public/WebSharedWorker.h |
| index 1239198c64ac68f676d8c947058c5253a2c283d1..04d0c45b9cf9b13a4d85bf777feab9a55397ef10 100644 |
| --- a/webkit/api/public/WebSharedWorker.h |
| +++ b/webkit/api/public/WebSharedWorker.h |
| @@ -61,9 +61,14 @@ public: |
| const WebString& name, |
| const WebString& userAgent, |
| const WebString& sourceCode) = 0; |
| + class ConnectListener { |
| + public: |
|
jam
2009/11/09 02:53:03
nit: the spacing here should conform to WebKit sty
|
| + // Invoked once the connect event has been sent so the caller can free this object. |
| + virtual void connected() = 0; |
| + }; |
| - // Sends a connect event to the SharedWorker context. |
| - virtual void connect(WebMessagePortChannel*) = 0; |
| + // Sends a connect event to the SharedWorker context. The listener is invoked when this async operation completes. |
| + virtual void connect(WebMessagePortChannel*, ConnectListener*) = 0; |
| // Invoked to shutdown the worker when there are no more associated documents. |
| virtual void terminateWorkerContext() = 0; |