| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Note: This header should be compilable as C. | 5 // Note: This header should be compilable as C. |
| 6 | 6 |
| 7 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ | 7 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ |
| 8 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ | 8 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ |
| 9 | 9 |
| 10 #include "mojo/public/c/system/buffer.h" | 10 #include "mojo/public/c/system/buffer.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 MojoHandle handle, | 47 MojoHandle handle, |
| 48 MojoSystemImpl to_system, | 48 MojoSystemImpl to_system, |
| 49 MojoHandle* result_handle); | 49 MojoHandle* result_handle); |
| 50 | 50 |
| 51 // APIs mirroring the Mojo system APIs, but also taking a MojoSystemImpl param. | 51 // APIs mirroring the Mojo system APIs, but also taking a MojoSystemImpl param. |
| 52 MojoTimeTicks MojoSystemImplGetTimeTicksNow(MojoSystemImpl system); | 52 MojoTimeTicks MojoSystemImplGetTimeTicksNow(MojoSystemImpl system); |
| 53 MojoResult MojoSystemImplClose(MojoSystemImpl system, MojoHandle handle); | 53 MojoResult MojoSystemImplClose(MojoSystemImpl system, MojoHandle handle); |
| 54 MojoResult MojoSystemImplGetRights(MojoSystemImpl system, | 54 MojoResult MojoSystemImplGetRights(MojoSystemImpl system, |
| 55 MojoHandle handle, | 55 MojoHandle handle, |
| 56 MojoHandleRights* rights); | 56 MojoHandleRights* rights); |
| 57 MojoResult MojoSystemImplDuplicateHandleWithReducedRights( |
| 58 MojoSystemImpl system, |
| 59 MojoHandle handle, |
| 60 MojoHandleRights rights_to_remove, |
| 61 MojoHandle* new_handle); |
| 62 MojoResult MojoSystemImplDuplicateHandle(MojoSystemImpl system, |
| 63 MojoHandle handle, |
| 64 MojoHandle* new_handle); |
| 57 MojoResult MojoSystemImplWait(MojoSystemImpl system, | 65 MojoResult MojoSystemImplWait(MojoSystemImpl system, |
| 58 MojoHandle handle, | 66 MojoHandle handle, |
| 59 MojoHandleSignals signals, | 67 MojoHandleSignals signals, |
| 60 MojoDeadline deadline, | 68 MojoDeadline deadline, |
| 61 struct MojoHandleSignalsState* signals_state); | 69 struct MojoHandleSignalsState* signals_state); |
| 62 MojoResult MojoSystemImplWaitMany( | 70 MojoResult MojoSystemImplWaitMany( |
| 63 MojoSystemImpl system, | 71 MojoSystemImpl system, |
| 64 const MojoHandle* handles, | 72 const MojoHandle* handles, |
| 65 const MojoHandleSignals* signals, | 73 const MojoHandleSignals* signals, |
| 66 uint32_t num_handles, | 74 uint32_t num_handles, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 uint64_t num_bytes, | 164 uint64_t num_bytes, |
| 157 void** buffer, | 165 void** buffer, |
| 158 MojoMapBufferFlags flags); | 166 MojoMapBufferFlags flags); |
| 159 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer); | 167 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer); |
| 160 | 168 |
| 161 #ifdef __cplusplus | 169 #ifdef __cplusplus |
| 162 } // extern "C" | 170 } // extern "C" |
| 163 #endif // __cplusplus | 171 #endif // __cplusplus |
| 164 | 172 |
| 165 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ | 173 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ |
| OLD | NEW |