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

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

Issue 173193: Updating Worker.postMessage(), DOMWindow.postMessage(), and... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 months 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
« no previous file with comments | « chrome/worker/webworkerclient_proxy.cc ('k') | webkit/api/public/WebVector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebMessagePortChannel.h
===================================================================
--- webkit/api/public/WebMessagePortChannel.h (revision 23787)
+++ webkit/api/public/WebMessagePortChannel.h (working copy)
@@ -32,11 +32,14 @@
#define WebMessagePortChannel_h
#include "WebCommon.h"
+#include "WebVector.h"
namespace WebKit {
class WebMessagePortChannelClient;
class WebString;
+ typedef WebVector<class WebMessagePortChannel*> WebMessagePortChannelArray;
+
// Provides an interface to a Message Port Channel implementation. The object owns itself and
// is signalled that its not needed anymore with the destroy() call.
class WebMessagePortChannel {
@@ -45,9 +48,9 @@
virtual void destroy() = 0;
// WebKit versions of WebCore::MessagePortChannel.
virtual void entangle(WebMessagePortChannel*) = 0;
- // If sending a message port, callee receives ownership of the object.
- virtual void postMessage(const WebString&, WebMessagePortChannel*) = 0;
- virtual bool tryGetMessage(WebString*, WebMessagePortChannel**) = 0;
+ // Callee receives ownership of the passed vector.
+ virtual void postMessage(const WebString&, WebMessagePortChannelArray*) = 0;
+ virtual bool tryGetMessage(WebString*, WebMessagePortChannelArray&) = 0;
protected:
~WebMessagePortChannel() { }
« no previous file with comments | « chrome/worker/webworkerclient_proxy.cc ('k') | webkit/api/public/WebVector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698