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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 // This method corresponds to the API function defined in | 111 // This method corresponds to the API function defined in |
112 // "mojo/public/c/system/time.h": | 112 // "mojo/public/c/system/time.h": |
113 | 113 |
114 MojoTimeTicks GetTimeTicksNow(); | 114 MojoTimeTicks GetTimeTicksNow(); |
115 | 115 |
116 // This method corresponds to the API function defined in | 116 // This method corresponds to the API function defined in |
117 // "mojo/public/c/system/handle.h": | 117 // "mojo/public/c/system/handle.h": |
118 MojoResult Close(MojoHandle handle); | 118 MojoResult Close(MojoHandle handle); |
119 MojoResult GetRights(MojoHandle handle, UserPointer<MojoHandleRights> rights); | 119 MojoResult GetRights(MojoHandle handle, UserPointer<MojoHandleRights> rights); |
| 120 MojoResult DuplicateHandleWithReducedRights( |
| 121 MojoHandle handle, |
| 122 MojoHandleRights rights_to_remove, |
| 123 UserPointer<MojoHandle> new_handle); |
120 | 124 |
121 // These methods correspond to the API functions defined in | 125 // These methods correspond to the API functions defined in |
122 // "mojo/public/c/system/wait.h": | 126 // "mojo/public/c/system/wait.h": |
123 MojoResult Wait(MojoHandle handle, | 127 MojoResult Wait(MojoHandle handle, |
124 MojoHandleSignals signals, | 128 MojoHandleSignals signals, |
125 MojoDeadline deadline, | 129 MojoDeadline deadline, |
126 UserPointer<MojoHandleSignalsState> signals_state); | 130 UserPointer<MojoHandleSignalsState> signals_state); |
127 MojoResult WaitMany(UserPointer<const MojoHandle> handles, | 131 MojoResult WaitMany(UserPointer<const MojoHandle> handles, |
128 UserPointer<const MojoHandleSignals> signals, | 132 UserPointer<const MojoHandleSignals> signals, |
129 uint32_t num_handles, | 133 uint32_t num_handles, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 util::Mutex mapping_table_mutex_; | 239 util::Mutex mapping_table_mutex_; |
236 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); | 240 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); |
237 | 241 |
238 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); | 242 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); |
239 }; | 243 }; |
240 | 244 |
241 } // namespace system | 245 } // namespace system |
242 } // namespace mojo | 246 } // namespace mojo |
243 | 247 |
244 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 248 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
OLD | NEW |