Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: mojo/edk/system/core.h

Issue 1785843002: [mojo] Implement pipe fusion API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/embedder/entrypoints.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « mojo/edk/embedder/entrypoints.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698