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

Unified Diff: ipc/ipc_channel.h

Issue 2109213003: Add helper function to generate a pair of ChannelHandles for ChannelMojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | ipc/ipc_channel_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel.h
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h
index fdd0b352964a4a3e554b763c54276dccd0e9bf7e..09baf6cf14044ecc32315789b9ee84915bea36b6 100644
--- a/ipc/ipc_channel.h
+++ b/ipc/ipc_channel.h
@@ -223,6 +223,17 @@ class IPC_EXPORT Channel : public Endpoint {
static std::string GenerateVerifiedChannelID(const std::string& prefix);
#endif
+ // Generates a pair of channel handles that can be used as the client and
+ // server ends of a ChannelMojo. |name_postfix| is appended to the end of the
+ // handle name to help identify the handles.
+ //
+ // Note, when using ChannelMojo, |ChannelHandle::name| serves no functional
+ // purpose other than to identify the channel in logging.
+ static void GenerateMojoChannelHandlePair(
+ const std::string& name_postfix,
+ IPC::ChannelHandle* handle0,
+ IPC::ChannelHandle* handle1);
+
#if defined(OS_LINUX)
// Sandboxed processes live in a PID namespace, so when sending the IPC hello
// message from client to server we need to send the PID from the global
« no previous file with comments | « no previous file | ipc/ipc_channel_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698