Index: content/child/webmessageportchannel_impl.h |
diff --git a/content/child/webmessageportchannel_impl.h b/content/child/webmessageportchannel_impl.h |
index c6306e85f624147ef967d3fdac57eaf7d5de20e7..25e56e2bc8cb08e1fb4e8546d3345b41e327452b 100644 |
--- a/content/child/webmessageportchannel_impl.h |
+++ b/content/child/webmessageportchannel_impl.h |
@@ -56,6 +56,15 @@ class WebMessagePortChannelImpl |
static std::vector<TransferredMessagePort> ExtractMessagePortIDs( |
const blink::WebMessagePortChannelArray& channels); |
+ // Extracts port IDs for passing on to the browser process, but doesn't |
+ // send a separate IPC to the browser to initiate queueing messages. Instead |
+ // calling code is responsible for initiating the queueing in the browser |
+ // process. This is useful when transfering ports over an IPC channel that |
+ // does not share ordering guarentees with regular IPC. |
+ static std::vector<TransferredMessagePort> |
+ ExtractMessagePortIDsWithoutQueueing( |
+ scoped_ptr<blink::WebMessagePortChannelArray> channels); |
+ |
// Creates WebMessagePortChannelImpl instances for port IDs passed in from the |
// browser process. |
static blink::WebMessagePortChannelArray CreatePorts( |