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

Unified Diff: mojo/edk/system/child_broker.h

Issue 1524333002: Fix race condition with multiplexed message pipes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « mojo/edk/system/broker_state.cc ('k') | mojo/edk/system/child_broker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/child_broker.h
diff --git a/mojo/edk/system/child_broker.h b/mojo/edk/system/child_broker.h
index 38cef560c204c31155406c1b1bf6efe4d3634e7e..c2d09b3036e5b5f10a00d539db7b2a275d96d195 100644
--- a/mojo/edk/system/child_broker.h
+++ b/mojo/edk/system/child_broker.h
@@ -70,6 +70,11 @@ class MOJO_SYSTEM_IMPL_EXPORT ChildBroker
// Initializes |parent_async_channel_|.
void InitAsyncChannel(ScopedPlatformHandle parent_async_channel_handle);
+ // Helper method to connect the given MessagePipe to the channel.
+ void AttachMessagePipe(MessagePipeDispatcher* message_pipe,
+ uint64_t pipe_id,
+ RoutedRawChannel* raw_channel);
+
#if defined(OS_WIN)
// Helper method to write the given message and read back the result.
bool WriteAndReadResponse(BrokerMessage* message,
« no previous file with comments | « mojo/edk/system/broker_state.cc ('k') | mojo/edk/system/child_broker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698