| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // These methods correspond to the API functions defined in | 145 // These methods correspond to the API functions defined in |
| 146 // "mojo/public/c/system/buffer.h": | 146 // "mojo/public/c/system/buffer.h": |
| 147 MojoResult CreateSharedBuffer( | 147 MojoResult CreateSharedBuffer( |
| 148 UserPointer<const MojoCreateSharedBufferOptions> options, | 148 UserPointer<const MojoCreateSharedBufferOptions> options, |
| 149 uint64_t num_bytes, | 149 uint64_t num_bytes, |
| 150 UserPointer<MojoHandle> shared_buffer_handle); | 150 UserPointer<MojoHandle> shared_buffer_handle); |
| 151 MojoResult DuplicateBufferHandle( | 151 MojoResult DuplicateBufferHandle( |
| 152 MojoHandle buffer_handle, | 152 MojoHandle buffer_handle, |
| 153 UserPointer<const MojoDuplicateBufferHandleOptions> options, | 153 UserPointer<const MojoDuplicateBufferHandleOptions> options, |
| 154 UserPointer<MojoHandle> new_buffer_handle); | 154 UserPointer<MojoHandle> new_buffer_handle); |
| 155 MojoResult GetBufferInformation(MojoHandle buffer_handle, |
| 156 UserPointer<MojoBufferInformation> info, |
| 157 uint32_t info_num_bytes); |
| 155 MojoResult MapBuffer(MojoHandle buffer_handle, | 158 MojoResult MapBuffer(MojoHandle buffer_handle, |
| 156 uint64_t offset, | 159 uint64_t offset, |
| 157 uint64_t num_bytes, | 160 uint64_t num_bytes, |
| 158 UserPointer<void*> buffer, | 161 UserPointer<void*> buffer, |
| 159 MojoMapBufferFlags flags); | 162 MojoMapBufferFlags flags); |
| 160 MojoResult UnmapBuffer(UserPointer<void> buffer); | 163 MojoResult UnmapBuffer(UserPointer<void> buffer); |
| 161 | 164 |
| 162 private: | 165 private: |
| 163 friend bool internal::ShutdownCheckNoLeaks(Core*); | 166 friend bool internal::ShutdownCheckNoLeaks(Core*); |
| 164 | 167 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 183 util::Mutex mapping_table_mutex_; | 186 util::Mutex mapping_table_mutex_; |
| 184 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); | 187 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); |
| 185 | 188 |
| 186 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); | 189 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); |
| 187 }; | 190 }; |
| 188 | 191 |
| 189 } // namespace system | 192 } // namespace system |
| 190 } // namespace mojo | 193 } // namespace mojo |
| 191 | 194 |
| 192 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 195 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |