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

Unified Diff: content/child/webmessageportchannel_impl.h

Issue 189253002: Implement ServiceWorker::postMessage() [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename message handler per review feedback Created 6 years, 9 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 e737fc31fe3976b0076eed07def99a3ab2dd5e03..1fe46e8faa3317980a88a269eae24a4625a89900 100644
--- a/content/child/webmessageportchannel_impl.h
+++ b/content/child/webmessageportchannel_impl.h
@@ -33,6 +33,11 @@ class WebMessagePortChannelImpl
int message_port_id,
base::MessageLoopProxy* child_thread_loop);
+ // Extracts port IDs for passing on to the browser process, and queues any
+ // received messages. Takes ownership of the passed array (and deletes it).
+ static std::vector<int> ExtractMessagePortIDs(
+ blink::WebMessagePortChannelArray* channels);
+
// Queues received and incoming messages until there are no more in-flight
// messages, then sends all of them to the browser process.
void QueueMessages();
« no previous file with comments | « content/child/service_worker/web_service_worker_impl.cc ('k') | content/child/webmessageportchannel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698