| 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); | |
| 141 MojoResult Wait(MojoHandle handle, | 139 MojoResult Wait(MojoHandle handle, |
| 142 MojoHandleSignals signals, | 140 MojoHandleSignals signals, |
| 143 MojoDeadline deadline, | 141 MojoDeadline deadline, |
| 144 MojoHandleSignalsState* signals_state); | 142 MojoHandleSignalsState* signals_state); |
| 145 MojoResult WaitMany(const MojoHandle* handles, | 143 MojoResult WaitMany(const MojoHandle* handles, |
| 146 const MojoHandleSignals* signals, | 144 const MojoHandleSignals* signals, |
| 147 uint32_t num_handles, | 145 uint32_t num_handles, |
| 148 MojoDeadline deadline, | 146 MojoDeadline deadline, |
| 149 uint32_t* result_index, | 147 uint32_t* result_index, |
| 150 MojoHandleSignalsState* signals_states); | 148 MojoHandleSignalsState* signals_states); |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // Properties that can be read using the MojoGetProperty() API. | 317 // Properties that can be read using the MojoGetProperty() API. |
| 320 bool property_sync_call_allowed_ = true; | 318 bool property_sync_call_allowed_ = true; |
| 321 | 319 |
| 322 DISALLOW_COPY_AND_ASSIGN(Core); | 320 DISALLOW_COPY_AND_ASSIGN(Core); |
| 323 }; | 321 }; |
| 324 | 322 |
| 325 } // namespace edk | 323 } // namespace edk |
| 326 } // namespace mojo | 324 } // namespace mojo |
| 327 | 325 |
| 328 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 326 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |