| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CORE_H_ | 5 #ifndef MOJO_EDK_SYSTEM_CORE_H_ |
| 6 #define MOJO_EDK_SYSTEM_CORE_H_ | 6 #define MOJO_EDK_SYSTEM_CORE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 MojoResult Wait(MojoHandle handle, | 125 MojoResult Wait(MojoHandle handle, |
| 126 MojoHandleSignals signals, | 126 MojoHandleSignals signals, |
| 127 MojoDeadline deadline, | 127 MojoDeadline deadline, |
| 128 MojoHandleSignalsState* signals_state); | 128 MojoHandleSignalsState* signals_state); |
| 129 MojoResult WaitMany(const MojoHandle* handles, | 129 MojoResult WaitMany(const MojoHandle* handles, |
| 130 const MojoHandleSignals* signals, | 130 const MojoHandleSignals* signals, |
| 131 uint32_t num_handles, | 131 uint32_t num_handles, |
| 132 MojoDeadline deadline, | 132 MojoDeadline deadline, |
| 133 uint32_t* result_index, | 133 uint32_t* result_index, |
| 134 MojoHandleSignalsState* signals_states); | 134 MojoHandleSignalsState* signals_states); |
| 135 MojoResult Watch(MojoHandle handle, |
| 136 MojoHandleSignals signals, |
| 137 MojoWatchCallback callback, |
| 138 uintptr_t context); |
| 139 MojoResult CancelWatch(MojoHandle handle, uintptr_t context); |
| 135 | 140 |
| 136 // These methods correspond to the API functions defined in | 141 // These methods correspond to the API functions defined in |
| 137 // "mojo/public/c/system/wait_set.h": | 142 // "mojo/public/c/system/wait_set.h": |
| 138 MojoResult CreateWaitSet(MojoHandle* wait_set_handle); | 143 MojoResult CreateWaitSet(MojoHandle* wait_set_handle); |
| 139 MojoResult AddHandle(MojoHandle wait_set_handle, | 144 MojoResult AddHandle(MojoHandle wait_set_handle, |
| 140 MojoHandle handle, | 145 MojoHandle handle, |
| 141 MojoHandleSignals signals); | 146 MojoHandleSignals signals); |
| 142 MojoResult RemoveHandle(MojoHandle wait_set_handle, | 147 MojoResult RemoveHandle(MojoHandle wait_set_handle, |
| 143 MojoHandle handle); | 148 MojoHandle handle); |
| 144 MojoResult GetReadyHandles(MojoHandle wait_set_handle, | 149 MojoResult GetReadyHandles(MojoHandle wait_set_handle, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 base::Lock mapping_table_lock_; // Protects |mapping_table_|. | 250 base::Lock mapping_table_lock_; // Protects |mapping_table_|. |
| 246 MappingTable mapping_table_; | 251 MappingTable mapping_table_; |
| 247 | 252 |
| 248 DISALLOW_COPY_AND_ASSIGN(Core); | 253 DISALLOW_COPY_AND_ASSIGN(Core); |
| 249 }; | 254 }; |
| 250 | 255 |
| 251 } // namespace edk | 256 } // namespace edk |
| 252 } // namespace mojo | 257 } // namespace mojo |
| 253 | 258 |
| 254 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 259 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |