diff options
author | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-04 23:44:17 +0000 |
---|---|---|
committer | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-04 23:44:17 +0000 |
commit | 6486088e8bb6dc810157503edfa3c75a58e9e49d (patch) | |
tree | eda9fabacac5b6796c142ec4cc402b47bdf97dd8 /ipc/ipc_test_base.cc | |
parent | d93dbd1248f4e556c9c1c1005f5d051e3fe1efc8 (diff) | |
download | chromium_src-6486088e8bb6dc810157503edfa3c75a58e9e49d.zip chromium_src-6486088e8bb6dc810157503edfa3c75a58e9e49d.tar.gz chromium_src-6486088e8bb6dc810157503edfa3c75a58e9e49d.tar.bz2 |
Introduce ChannelMojo
This CL introduces ChannelMojo IPC::Channel implementation
and optionally applies it for renderer-browser IPC channel.
Current stability is like 5-seconds browser and There are rough edges.
It often closes the channel so needs to be more robust.
Even though the level of stability, having it in the tree will helps
team to try and improve it.
BUG=377980
R=darin@chromium.org,jam@chromium.org,viettrungluu@chromium.org
TEST=ipc_channel_mojo_unittest.cc
Review URL: https://codereview.chromium.org/382333002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287402 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_test_base.cc')
-rw-r--r-- | ipc/ipc_test_base.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc index 589ee98..f893c28 100644 --- a/ipc/ipc_test_base.cc +++ b/ipc/ipc_test_base.cc @@ -59,6 +59,15 @@ bool IPCTestBase::ConnectChannel() { return channel_->Connect(); } +scoped_ptr<IPC::Channel> IPCTestBase::ReleaseChannel() { + return channel_.Pass(); +} + +void IPCTestBase::SetChannel(scoped_ptr<IPC::Channel> channel) { + channel_ = channel.Pass(); +} + + void IPCTestBase::DestroyChannel() { DCHECK(channel_.get()); channel_.reset(); @@ -120,3 +129,7 @@ bool IPCTestBase::WaitForClientShutdown() { client_process_ = base::kNullProcessHandle; return rv; } + +scoped_refptr<base::TaskRunner> IPCTestBase::io_thread_task_runner() { + return message_loop_->message_loop_proxy(); +} |