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

Unified Diff: mojo/edk/system/core.h

Issue 1880823005: [mojo-edk] Add explicit message object APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/system/core.h
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h
index 18da0ba375c744883f7a6e8a6ed0743517ccff36..cb58b30521f499b76cb6675e5bd4cc90a5830d07 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -144,6 +144,13 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
MojoWatchCallback callback,
uintptr_t context);
MojoResult CancelWatch(MojoHandle handle, uintptr_t context);
+ MojoResult CreateMessage(uint32_t num_bytes,
+ const MojoHandle* handles,
+ uint32_t num_handles,
+ MojoCreateMessageFlags flags,
+ void** message);
+ MojoResult DestroyMessage(void* message_ptr);
+ MojoResult GetMessageBuffer(void* message_ptr, void** buffer);
// These methods correspond to the API functions defined in
// "mojo/public/c/system/wait_set.h":
@@ -171,12 +178,21 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
const MojoHandle* handles,
uint32_t num_handles,
MojoWriteMessageFlags flags);
+ MojoResult WriteMessageNew(MojoHandle message_pipe_handle,
+ void* message_ptr,
+ MojoWriteMessageFlags flags);
MojoResult ReadMessage(MojoHandle message_pipe_handle,
void* bytes,
uint32_t* num_bytes,
MojoHandle* handles,
uint32_t* num_handles,
MojoReadMessageFlags flags);
+ MojoResult ReadMessageNew(MojoHandle message_pipe_handle,
+ void** message,
+ uint32_t* num_bytes,
+ MojoHandle* handles,
+ uint32_t* num_handles,
+ MojoReadMessageFlags flags);
MojoResult FuseMessagePipes(MojoHandle handle0, MojoHandle handle1);
// These methods correspond to the API functions defined in

Powered by Google App Engine
This is Rietveld 408576698