diff options
author | morrita <morrita@chromium.org> | 2014-10-20 18:16:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-21 01:17:18 +0000 |
commit | 49ca46d9a1b8e03b28b1925ce7e9bdb96149f46f (patch) | |
tree | 0dd6eb6c3da60ecd8b2a6075d8a3498a0a5de65b /ipc | |
parent | 1741613baa940d22e663bb1bfd74527625f3df26 (diff) | |
download | chromium_src-49ca46d9a1b8e03b28b1925ce7e9bdb96149f46f.zip chromium_src-49ca46d9a1b8e03b28b1925ce7e9bdb96149f46f.tar.gz chromium_src-49ca46d9a1b8e03b28b1925ce7e9bdb96149f46f.tar.bz2 |
ChannelMojo: Add ChannelMojo::CanBeUsed() to enable it incrementally
ChannelMojo::CanBeUsed() let the code enable the feature for specific
platform regardless of the command line switch.
TEST=none
R=viettrungluu@chromium.org
BUG=377980
Review URL: https://codereview.chromium.org/665993002
Cr-Commit-Position: refs/heads/master@{#300394}
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mojo/ipc_channel_mojo.cc | 6 | ||||
-rw-r--r-- | ipc/mojo/ipc_channel_mojo.h | 3 |
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, |