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/embedder/embedder.h" | 5 #include "mojo/edk/embedder/embedder.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 if (dispatcher->GetType() != system::Dispatcher::kTypePlatformHandle) | 201 if (dispatcher->GetType() != system::Dispatcher::kTypePlatformHandle) |
202 return MOJO_RESULT_INVALID_ARGUMENT; | 202 return MOJO_RESULT_INVALID_ARGUMENT; |
203 | 203 |
204 *platform_handle = | 204 *platform_handle = |
205 static_cast<system::PlatformHandleDispatcher*>(dispatcher.get()) | 205 static_cast<system::PlatformHandleDispatcher*>(dispatcher.get()) |
206 ->PassPlatformHandle() | 206 ->PassPlatformHandle() |
207 .Pass(); | 207 .Pass(); |
208 return MOJO_RESULT_OK; | 208 return MOJO_RESULT_OK; |
209 } | 209 } |
210 | 210 |
| 211 MojoResult AsyncWait(MojoHandle handle, |
| 212 MojoHandleSignals signals, |
| 213 base::Callback<void(MojoResult)> callback) { |
| 214 return internal::g_core->AsyncWait(handle, signals, callback); |
| 215 } |
| 216 |
211 } // namespace embedder | 217 } // namespace embedder |
212 } // namespace mojo | 218 } // namespace mojo |
OLD | NEW |