summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/mojo/ipc_channel_mojo.cc6
-rw-r--r--ipc/mojo/ipc_channel_mojo.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/ipc/mojo/ipc_channel_mojo.cc b/ipc/mojo/ipc_channel_mojo.cc
index 0672a22..a5663411 100644
--- a/ipc/mojo/ipc_channel_mojo.cc
+++ b/ipc/mojo/ipc_channel_mojo.cc
@@ -53,6 +53,12 @@ void ChannelMojo::ChannelInfoDeleter::operator()(
//------------------------------------------------------------------------------
// static
+bool ChannelMojo::ShouldBeUsed() {
+ // TODO(morrita): Turn this on for a set of platforms.
+ return false;
+}
+
+// static
scoped_ptr<ChannelMojo> ChannelMojo::Create(ChannelMojo::Delegate* delegate,
const ChannelHandle& channel_handle,
Mode mode,
diff --git a/ipc/mojo/ipc_channel_mojo.h b/ipc/mojo/ipc_channel_mojo.h
index 4752fab..b307fd4 100644
--- a/ipc/mojo/ipc_channel_mojo.h
+++ b/ipc/mojo/ipc_channel_mojo.h
@@ -67,6 +67,9 @@ class IPC_MOJO_EXPORT ChannelMojo : public Channel,
virtual void OnChannelCreated(base::WeakPtr<ChannelMojo> channel) = 0;
};
+ // True if ChannelMojo should be used regardless of the flag.
+ static bool ShouldBeUsed();
+
// Create ChannelMojo. A bootstrap channel is created as well.
// |host| must not be null for server channels.
static scoped_ptr<ChannelMojo> Create(Delegate* delegate,