| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 uint32_t num_bytes, | 163 uint32_t num_bytes, |
| 164 const MojoHandle* handles, | 164 const MojoHandle* handles, |
| 165 uint32_t num_handles, | 165 uint32_t num_handles, |
| 166 MojoWriteMessageFlags flags); | 166 MojoWriteMessageFlags flags); |
| 167 MojoResult ReadMessage(MojoHandle message_pipe_handle, | 167 MojoResult ReadMessage(MojoHandle message_pipe_handle, |
| 168 void* bytes, | 168 void* bytes, |
| 169 uint32_t* num_bytes, | 169 uint32_t* num_bytes, |
| 170 MojoHandle* handles, | 170 MojoHandle* handles, |
| 171 uint32_t* num_handles, | 171 uint32_t* num_handles, |
| 172 MojoReadMessageFlags flags); | 172 MojoReadMessageFlags flags); |
| 173 MojoResult FuseMessagePipes(MojoHandle handle0, MojoHandle handle1); |
| 173 | 174 |
| 174 // These methods correspond to the API functions defined in | 175 // These methods correspond to the API functions defined in |
| 175 // "mojo/public/c/system/data_pipe.h": | 176 // "mojo/public/c/system/data_pipe.h": |
| 176 MojoResult CreateDataPipe( | 177 MojoResult CreateDataPipe( |
| 177 const MojoCreateDataPipeOptions* options, | 178 const MojoCreateDataPipeOptions* options, |
| 178 MojoHandle* data_pipe_producer_handle, | 179 MojoHandle* data_pipe_producer_handle, |
| 179 MojoHandle* data_pipe_consumer_handle); | 180 MojoHandle* data_pipe_consumer_handle); |
| 180 MojoResult WriteData(MojoHandle data_pipe_producer_handle, | 181 MojoResult WriteData(MojoHandle data_pipe_producer_handle, |
| 181 const void* elements, | 182 const void* elements, |
| 182 uint32_t* num_bytes, | 183 uint32_t* num_bytes, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 base::Lock mapping_table_lock_; // Protects |mapping_table_|. | 251 base::Lock mapping_table_lock_; // Protects |mapping_table_|. |
| 251 MappingTable mapping_table_; | 252 MappingTable mapping_table_; |
| 252 | 253 |
| 253 DISALLOW_COPY_AND_ASSIGN(Core); | 254 DISALLOW_COPY_AND_ASSIGN(Core); |
| 254 }; | 255 }; |
| 255 | 256 |
| 256 } // namespace edk | 257 } // namespace edk |
| 257 } // namespace mojo | 258 } // namespace mojo |
| 258 | 259 |
| 259 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 260 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |