| 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 "third_party/mojo/src/mojo/public/cpp/environment/lib/default_async_wai
ter.h" | 5 #include "mojo/public/cpp/environment/lib/default_async_waiter.h" |
| 6 | 6 |
| 7 #include <assert.h> | 7 #include <assert.h> |
| 8 | 8 |
| 9 #include "third_party/mojo/src/mojo/public/c/environment/async_waiter.h" | 9 #include "mojo/public/c/environment/async_waiter.h" |
| 10 #include "third_party/mojo/src/mojo/public/cpp/utility/run_loop.h" | 10 #include "mojo/public/cpp/utility/run_loop.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/utility/run_loop_handler.h" | 11 #include "mojo/public/cpp/utility/run_loop_handler.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // RunLoopHandler implementation used for a request to AsyncWait(). There are | 17 // RunLoopHandler implementation used for a request to AsyncWait(). There are |
| 18 // two ways RunLoopHandlerImpl is deleted: | 18 // two ways RunLoopHandlerImpl is deleted: |
| 19 // . when the handle is ready (or errored). | 19 // . when the handle is ready (or errored). |
| 20 // . when CancelWait() is invoked. | 20 // . when CancelWait() is invoked. |
| 21 class RunLoopHandlerImpl : public RunLoopHandler { | 21 class RunLoopHandlerImpl : public RunLoopHandler { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 } // namespace | 77 } // namespace |
| 78 | 78 |
| 79 namespace internal { | 79 namespace internal { |
| 80 | 80 |
| 81 const MojoAsyncWaiter kDefaultAsyncWaiter = {AsyncWait, CancelWait}; | 81 const MojoAsyncWaiter kDefaultAsyncWaiter = {AsyncWait, CancelWait}; |
| 82 | 82 |
| 83 } // namespace internal | 83 } // namespace internal |
| 84 | 84 |
| 85 } // namespace mojo | 85 } // namespace mojo |
| OLD | NEW |