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

Unified Diff: content/child/webmessageportchannel_impl.h

Issue 1192713004: Update client side navigator.connect API to use ServicePortCollection [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows SendMessage annoyance Created 5 years, 6 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
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(

Powered by Google App Engine
This is Rietveld 408576698