| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ |
| 6 #define MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ | 6 #define MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "mojo/edk/system/dispatcher.h" | 8 #include "mojo/edk/system/dispatcher.h" |
| 9 #include "mojo/public/cpp/system/macros.h" | 9 #include "mojo/public/cpp/system/macros.h" |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 bool SupportsEntrypointClass(EntrypointClass entrypoint_class) const override; | 47 bool SupportsEntrypointClass(EntrypointClass entrypoint_class) const override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 WaitSetDispatcher(); | 50 WaitSetDispatcher(); |
| 51 ~WaitSetDispatcher() override; | 51 ~WaitSetDispatcher() override; |
| 52 | 52 |
| 53 // |Dispatcher| protected methods: | 53 // |Dispatcher| protected methods: |
| 54 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock( | 54 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock( |
| 55 MessagePipe* message_pipe, | 55 MessagePipe* message_pipe, |
| 56 unsigned port) override; | 56 unsigned port) override; |
| 57 MojoResult WaitSetAddImplNoLock( | 57 MojoResult WaitSetAddImpl(UserPointer<const MojoWaitSetAddOptions> options, |
| 58 UserPointer<const MojoWaitSetAddOptions> options, | 58 Handle&& handle, |
| 59 Handle&& handle, | 59 MojoHandleSignals signals, |
| 60 MojoHandleSignals signals, | 60 uint64_t cookie) override; |
| 61 uint64_t cookie) override; | 61 MojoResult WaitSetRemoveImpl(uint64_t cookie) override; |
| 62 MojoResult WaitSetRemoveImplNoLock(uint64_t cookie) override; | |
| 63 MojoResult WaitSetWaitImpl(MojoDeadline deadline, | 62 MojoResult WaitSetWaitImpl(MojoDeadline deadline, |
| 64 UserPointer<uint32_t> num_results, | 63 UserPointer<uint32_t> num_results, |
| 65 UserPointer<MojoWaitSetResult> results, | 64 UserPointer<MojoWaitSetResult> results, |
| 66 UserPointer<uint32_t> max_results) override; | 65 UserPointer<uint32_t> max_results) override; |
| 67 | 66 |
| 68 private: | 67 private: |
| 69 MOJO_DISALLOW_COPY_AND_ASSIGN(WaitSetDispatcher); | 68 MOJO_DISALLOW_COPY_AND_ASSIGN(WaitSetDispatcher); |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace system | 71 } // namespace system |
| 73 } // namespace mojo | 72 } // namespace mojo |
| 74 | 73 |
| 75 #endif // MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ | 74 #endif // MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ |
| OLD | NEW |