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

Unified Diff: ipc/ipc_channel_handle.h

Issue 2047233002: Support using a Mojo message pipe in a ChannelHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-handle-attachemnt-public-api
Patch Set: comments 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 | « ipc/ipc_channel_factory.cc ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_handle.h
diff --git a/ipc/ipc_channel_handle.h b/ipc/ipc_channel_handle.h
index 1b6fd8ca2059030d11d07391c3c6ead37e162ede..2e9dc3e57f37f424934ac1a7f832763d1f2a80f1 100644
--- a/ipc/ipc_channel_handle.h
+++ b/ipc/ipc_channel_handle.h
@@ -8,6 +8,7 @@
#include <string>
#include "build/build_config.h"
+#include "mojo/public/cpp/system/message_pipe.h"
#if defined(OS_POSIX)
#include "base/file_descriptor_posix.h"
@@ -47,6 +48,7 @@ struct ChannelHandle {
ChannelHandle(const std::string& n, const base::FileDescriptor& s)
: name(n), socket(s) {}
#endif // defined(OS_POSIX)
+ ChannelHandle(mojo::MessagePipeHandle h) : mojo_handle(h) {}
std::string name;
#if defined(OS_POSIX)
@@ -60,6 +62,7 @@ struct ChannelHandle {
};
PipeHandle pipe;
#endif // defined (OS_WIN)
+ mojo::MessagePipeHandle mojo_handle;
};
} // namespace IPC
« no previous file with comments | « ipc/ipc_channel_factory.cc ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698