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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // The following methods are essentially implementations of the Mojo Core | 129 // The following methods are essentially implementations of the Mojo Core |
130 // functions of the Mojo API, with the C interface translated to C++ by | 130 // functions of the Mojo API, with the C interface translated to C++ by |
131 // "mojo/edk/embedder/entrypoints.cc". The best way to understand the contract | 131 // "mojo/edk/embedder/entrypoints.cc". The best way to understand the contract |
132 // of these methods is to look at the header files defining the corresponding | 132 // of these methods is to look at the header files defining the corresponding |
133 // API functions, referenced below. | 133 // API functions, referenced below. |
134 | 134 |
135 // These methods correspond to the API functions defined in | 135 // These methods correspond to the API functions defined in |
136 // "mojo/public/c/system/functions.h": | 136 // "mojo/public/c/system/functions.h": |
137 MojoTimeTicks GetTimeTicksNow(); | 137 MojoTimeTicks GetTimeTicksNow(); |
138 MojoResult Close(MojoHandle handle); | 138 MojoResult Close(MojoHandle handle); |
| 139 MojoResult QueryHandleSignalsState(MojoHandle handle, |
| 140 MojoHandleSignalsState* signals_state); |
139 MojoResult Wait(MojoHandle handle, | 141 MojoResult Wait(MojoHandle handle, |
140 MojoHandleSignals signals, | 142 MojoHandleSignals signals, |
141 MojoDeadline deadline, | 143 MojoDeadline deadline, |
142 MojoHandleSignalsState* signals_state); | 144 MojoHandleSignalsState* signals_state); |
143 MojoResult WaitMany(const MojoHandle* handles, | 145 MojoResult WaitMany(const MojoHandle* handles, |
144 const MojoHandleSignals* signals, | 146 const MojoHandleSignals* signals, |
145 uint32_t num_handles, | 147 uint32_t num_handles, |
146 MojoDeadline deadline, | 148 MojoDeadline deadline, |
147 uint32_t* result_index, | 149 uint32_t* result_index, |
148 MojoHandleSignalsState* signals_states); | 150 MojoHandleSignalsState* signals_states); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // Properties that can be read using the MojoGetProperty() API. | 319 // Properties that can be read using the MojoGetProperty() API. |
318 bool property_sync_call_allowed_ = true; | 320 bool property_sync_call_allowed_ = true; |
319 | 321 |
320 DISALLOW_COPY_AND_ASSIGN(Core); | 322 DISALLOW_COPY_AND_ASSIGN(Core); |
321 }; | 323 }; |
322 | 324 |
323 } // namespace edk | 325 } // namespace edk |
324 } // namespace mojo | 326 } // namespace mojo |
325 | 327 |
326 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 328 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
OLD | NEW |