| 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 MojoSystemImplReplaceHandleWithReducedRights( |
| 58 MojoSystemImpl system, |
| 59 MojoHandle handle, |
| 60 MojoHandleRights rights_to_remove, |
| 61 MojoHandle* replacement_handle); |
| 57 MojoResult MojoSystemImplDuplicateHandleWithReducedRights( | 62 MojoResult MojoSystemImplDuplicateHandleWithReducedRights( |
| 58 MojoSystemImpl system, | 63 MojoSystemImpl system, |
| 59 MojoHandle handle, | 64 MojoHandle handle, |
| 60 MojoHandleRights rights_to_remove, | 65 MojoHandleRights rights_to_remove, |
| 61 MojoHandle* new_handle); | 66 MojoHandle* new_handle); |
| 62 MojoResult MojoSystemImplDuplicateHandle(MojoSystemImpl system, | 67 MojoResult MojoSystemImplDuplicateHandle(MojoSystemImpl system, |
| 63 MojoHandle handle, | 68 MojoHandle handle, |
| 64 MojoHandle* new_handle); | 69 MojoHandle* new_handle); |
| 65 MojoResult MojoSystemImplWait(MojoSystemImpl system, | 70 MojoResult MojoSystemImplWait(MojoSystemImpl system, |
| 66 MojoHandle handle, | 71 MojoHandle handle, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 uint64_t num_bytes, | 169 uint64_t num_bytes, |
| 165 void** buffer, | 170 void** buffer, |
| 166 MojoMapBufferFlags flags); | 171 MojoMapBufferFlags flags); |
| 167 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer); | 172 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer); |
| 168 | 173 |
| 169 #ifdef __cplusplus | 174 #ifdef __cplusplus |
| 170 } // extern "C" | 175 } // extern "C" |
| 171 #endif // __cplusplus | 176 #endif // __cplusplus |
| 172 | 177 |
| 173 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ | 178 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ |
| OLD | NEW |