| 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 ReplaceHandleWithReducedRights( |
| 121 MojoHandle handle, |
| 122 MojoHandleRights rights_to_remove, |
| 123 UserPointer<MojoHandle> replacement_handle); |
| 120 MojoResult DuplicateHandleWithReducedRights( | 124 MojoResult DuplicateHandleWithReducedRights( |
| 121 MojoHandle handle, | 125 MojoHandle handle, |
| 122 MojoHandleRights rights_to_remove, | 126 MojoHandleRights rights_to_remove, |
| 123 UserPointer<MojoHandle> new_handle); | 127 UserPointer<MojoHandle> new_handle); |
| 124 | 128 |
| 125 // These methods correspond to the API functions defined in | 129 // These methods correspond to the API functions defined in |
| 126 // "mojo/public/c/system/wait.h": | 130 // "mojo/public/c/system/wait.h": |
| 127 MojoResult Wait(MojoHandle handle, | 131 MojoResult Wait(MojoHandle handle, |
| 128 MojoHandleSignals signals, | 132 MojoHandleSignals signals, |
| 129 MojoDeadline deadline, | 133 MojoDeadline deadline, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 util::Mutex mapping_table_mutex_; | 243 util::Mutex mapping_table_mutex_; |
| 240 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); | 244 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); |
| 241 | 245 |
| 242 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); | 246 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); |
| 243 }; | 247 }; |
| 244 | 248 |
| 245 } // namespace system | 249 } // namespace system |
| 246 } // namespace mojo | 250 } // namespace mojo |
| 247 | 251 |
| 248 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 252 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |