OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/edk/system/channel_manager.h" | 5 #include "mojo/edk/system/channel_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "mojo/edk/system/channel.h" | 11 #include "mojo/edk/system/channel.h" |
12 #include "mojo/edk/system/channel_endpoint.h" | 12 #include "mojo/edk/system/channel_endpoint.h" |
13 #include "mojo/edk/system/message_pipe_dispatcher.h" | 13 #include "mojo/edk/system/message_pipe_dispatcher.h" |
14 | 14 |
15 using mojo::embedder::ScopedPlatformHandle; | 15 using mojo::platform::ScopedPlatformHandle; |
16 using mojo::platform::TaskRunner; | 16 using mojo::platform::TaskRunner; |
17 using mojo::util::MakeRefCounted; | 17 using mojo::util::MakeRefCounted; |
18 using mojo::util::MutexLocker; | 18 using mojo::util::MutexLocker; |
19 using mojo::util::RefPtr; | 19 using mojo::util::RefPtr; |
20 | 20 |
21 namespace mojo { | 21 namespace mojo { |
22 namespace system { | 22 namespace system { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 CreateChannelOnIOThreadHelper(channel_id, platform_handle.Pass(), | 202 CreateChannelOnIOThreadHelper(channel_id, platform_handle.Pass(), |
203 std::move(bootstrap_channel_endpoint)); | 203 std::move(bootstrap_channel_endpoint)); |
204 if (callback_thread_task_runner) | 204 if (callback_thread_task_runner) |
205 callback_thread_task_runner->PostTask(callback); | 205 callback_thread_task_runner->PostTask(callback); |
206 else | 206 else |
207 callback.Run(); | 207 callback.Run(); |
208 } | 208 } |
209 | 209 |
210 } // namespace system | 210 } // namespace system |
211 } // namespace mojo | 211 } // namespace mojo |
OLD | NEW |