| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 MojoResult WriteData(MojoHandle data_pipe_producer_handle, | 133 MojoResult WriteData(MojoHandle data_pipe_producer_handle, |
| 134 UserPointer<const void> elements, | 134 UserPointer<const void> elements, |
| 135 UserPointer<uint32_t> num_bytes, | 135 UserPointer<uint32_t> num_bytes, |
| 136 MojoWriteDataFlags flags); | 136 MojoWriteDataFlags flags); |
| 137 MojoResult BeginWriteData(MojoHandle data_pipe_producer_handle, | 137 MojoResult BeginWriteData(MojoHandle data_pipe_producer_handle, |
| 138 UserPointer<void*> buffer, | 138 UserPointer<void*> buffer, |
| 139 UserPointer<uint32_t> buffer_num_bytes, | 139 UserPointer<uint32_t> buffer_num_bytes, |
| 140 MojoWriteDataFlags flags); | 140 MojoWriteDataFlags flags); |
| 141 MojoResult EndWriteData(MojoHandle data_pipe_producer_handle, | 141 MojoResult EndWriteData(MojoHandle data_pipe_producer_handle, |
| 142 uint32_t num_bytes_written); | 142 uint32_t num_bytes_written); |
| 143 MojoResult SetDataPipeConsumerOptions( |
| 144 MojoHandle data_pipe_consumer_handle, |
| 145 UserPointer<const MojoDataPipeConsumerOptions> options); |
| 146 MojoResult GetDataPipeConsumerOptions( |
| 147 MojoHandle data_pipe_consumer_handle, |
| 148 UserPointer<MojoDataPipeConsumerOptions> options, |
| 149 uint32_t options_num_bytes); |
| 143 MojoResult ReadData(MojoHandle data_pipe_consumer_handle, | 150 MojoResult ReadData(MojoHandle data_pipe_consumer_handle, |
| 144 UserPointer<void> elements, | 151 UserPointer<void> elements, |
| 145 UserPointer<uint32_t> num_bytes, | 152 UserPointer<uint32_t> num_bytes, |
| 146 MojoReadDataFlags flags); | 153 MojoReadDataFlags flags); |
| 147 MojoResult BeginReadData(MojoHandle data_pipe_consumer_handle, | 154 MojoResult BeginReadData(MojoHandle data_pipe_consumer_handle, |
| 148 UserPointer<const void*> buffer, | 155 UserPointer<const void*> buffer, |
| 149 UserPointer<uint32_t> buffer_num_bytes, | 156 UserPointer<uint32_t> buffer_num_bytes, |
| 150 MojoReadDataFlags flags); | 157 MojoReadDataFlags flags); |
| 151 MojoResult EndReadData(MojoHandle data_pipe_consumer_handle, | 158 MojoResult EndReadData(MojoHandle data_pipe_consumer_handle, |
| 152 uint32_t num_bytes_read); | 159 uint32_t num_bytes_read); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 util::Mutex mapping_table_mutex_; | 202 util::Mutex mapping_table_mutex_; |
| 196 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); | 203 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); |
| 197 | 204 |
| 198 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); | 205 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); |
| 199 }; | 206 }; |
| 200 | 207 |
| 201 } // namespace system | 208 } // namespace system |
| 202 } // namespace mojo | 209 } // namespace mojo |
| 203 | 210 |
| 204 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 211 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |