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

Unified Diff: ipc/ipc_channel_factory.cc

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_common.cc ('k') | ipc/ipc_channel_handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_factory.cc
diff --git a/ipc/ipc_channel_factory.cc b/ipc/ipc_channel_factory.cc
index 746b19a384431af1ed28e6712414549658de7082..dbb24c087e0cdf6cfe16b4a438bf14dd7175b690 100644
--- a/ipc/ipc_channel_factory.cc
+++ b/ipc/ipc_channel_factory.cc
@@ -5,6 +5,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "ipc/ipc_channel_factory.h"
+#include "ipc/ipc_channel_mojo.h"
namespace IPC {
@@ -20,6 +21,10 @@ class PlatformChannelFactory : public ChannelFactory {
}
std::unique_ptr<Channel> BuildChannel(Listener* listener) override {
+ if (handle_.mojo_handle.is_valid()) {
+ return ChannelMojo::Create(
+ mojo::ScopedMessagePipeHandle(handle_.mojo_handle), mode_, listener);
+ }
return Channel::Create(handle_, mode_, listener);
}
« no previous file with comments | « ipc/ipc_channel_common.cc ('k') | ipc/ipc_channel_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698