Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Unified Diff: webkit/api/public/WebSharedWorker.h

Issue 372047: Fixed worker startup issue (Closed)
Patch Set: Removed tests to a separate patch. Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698