summaryrefslogtreecommitdiffstats
path: root/ipc/mojo/BUILD.gn
diff options
context:
space:
mode:
authormorrita <morrita@chromium.org>2015-01-09 17:49:21 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-10 01:50:10 +0000
commitdcc28ab38888b4b8e754910bb4f236844914f5f2 (patch)
tree163a17914edc36a16f382f2b61dbdb92f05351b5 /ipc/mojo/BUILD.gn
parent4f2996da4f27c868760e14ef56a8226a5abda7f6 (diff)
downloadchromium_src-dcc28ab38888b4b8e754910bb4f236844914f5f2.zip
chromium_src-dcc28ab38888b4b8e754910bb4f236844914f5f2.tar.gz
chromium_src-dcc28ab38888b4b8e754910bb4f236844914f5f2.tar.bz2
ChannelMojo: Adopt |mojo::embedder::AsyncWait()|
This change replaces environment::AyncWaiter with embedder::AsyncWait() for performance reasons. As |AsyncWait()| has strict precondition that doesn't allow invoking it against non-empty |MessagePipe|, this change re-arranges the call site so that it ensures that the pipe becomes empty before the call. R=viettrungluu@chromium.org BUG=436189 Review URL: https://codereview.chromium.org/835623006 Cr-Commit-Position: refs/heads/master@{#310936}
Diffstat (limited to 'ipc/mojo/BUILD.gn')
-rw-r--r--ipc/mojo/BUILD.gn3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipc/mojo/BUILD.gn b/ipc/mojo/BUILD.gn
index 45ffb89..0a061e6 100644
--- a/ipc/mojo/BUILD.gn
+++ b/ipc/mojo/BUILD.gn
@@ -13,6 +13,8 @@ mojom("client_channel") {
component("mojo") {
sources = [
"client_channel.mojom",
+ "async_handle_waiter.cc",
+ "async_handle_waiter.h",
"ipc_channel_mojo.cc",
"ipc_channel_mojo.h",
"ipc_channel_mojo_host.cc",
@@ -38,6 +40,7 @@ component("mojo") {
test("ipc_mojo_unittests") {
sources = [
+ "async_handle_waiter_unittest.cc",
"ipc_channel_mojo_unittest.cc",
"ipc_mojo_bootstrap_unittest.cc",
"run_all_unittests.cc",