| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 UserPointer<MojoHandle> handles, | 123 UserPointer<MojoHandle> handles, |
| 124 UserPointer<uint32_t> num_handles, | 124 UserPointer<uint32_t> num_handles, |
| 125 MojoReadMessageFlags flags); | 125 MojoReadMessageFlags flags); |
| 126 | 126 |
| 127 // These methods correspond to the API functions defined in | 127 // These methods correspond to the API functions defined in |
| 128 // "mojo/public/c/system/data_pipe.h": | 128 // "mojo/public/c/system/data_pipe.h": |
| 129 MojoResult CreateDataPipe( | 129 MojoResult CreateDataPipe( |
| 130 UserPointer<const MojoCreateDataPipeOptions> options, | 130 UserPointer<const MojoCreateDataPipeOptions> options, |
| 131 UserPointer<MojoHandle> data_pipe_producer_handle, | 131 UserPointer<MojoHandle> data_pipe_producer_handle, |
| 132 UserPointer<MojoHandle> data_pipe_consumer_handle); | 132 UserPointer<MojoHandle> data_pipe_consumer_handle); |
| 133 MojoResult SetDataPipeProducerOptions( |
| 134 MojoHandle data_pipe_producer_handle, |
| 135 UserPointer<const MojoDataPipeProducerOptions> options); |
| 136 MojoResult GetDataPipeProducerOptions( |
| 137 MojoHandle data_pipe_producer_handle, |
| 138 UserPointer<MojoDataPipeProducerOptions> options, |
| 139 uint32_t options_num_bytes); |
| 133 MojoResult WriteData(MojoHandle data_pipe_producer_handle, | 140 MojoResult WriteData(MojoHandle data_pipe_producer_handle, |
| 134 UserPointer<const void> elements, | 141 UserPointer<const void> elements, |
| 135 UserPointer<uint32_t> num_bytes, | 142 UserPointer<uint32_t> num_bytes, |
| 136 MojoWriteDataFlags flags); | 143 MojoWriteDataFlags flags); |
| 137 MojoResult BeginWriteData(MojoHandle data_pipe_producer_handle, | 144 MojoResult BeginWriteData(MojoHandle data_pipe_producer_handle, |
| 138 UserPointer<void*> buffer, | 145 UserPointer<void*> buffer, |
| 139 UserPointer<uint32_t> buffer_num_bytes, | 146 UserPointer<uint32_t> buffer_num_bytes, |
| 140 MojoWriteDataFlags flags); | 147 MojoWriteDataFlags flags); |
| 141 MojoResult EndWriteData(MojoHandle data_pipe_producer_handle, | 148 MojoResult EndWriteData(MojoHandle data_pipe_producer_handle, |
| 142 uint32_t num_bytes_written); | 149 uint32_t num_bytes_written); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 util::Mutex mapping_table_mutex_; | 209 util::Mutex mapping_table_mutex_; |
| 203 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); | 210 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); |
| 204 | 211 |
| 205 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); | 212 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); |
| 206 }; | 213 }; |
| 207 | 214 |
| 208 } // namespace system | 215 } // namespace system |
| 209 } // namespace mojo | 216 } // namespace mojo |
| 210 | 217 |
| 211 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 218 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |