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

Unified Diff: mojo/public/platform/native/system_thunks.h

Issue 1995753002: [mojo-edk] Expose portable API for platform handle wrapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 7 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
« no previous file with comments | « mojo/public/cpp/system/platform_handle.cc ('k') | mojo/public/platform/native/system_thunks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/system_thunks.h
diff --git a/mojo/public/platform/native/system_thunks.h b/mojo/public/platform/native/system_thunks.h
index 8bd4eca4d7e4cea0cc28e29feced85cc416edcda..f3b5e8a9d4fc9a4577c8f353300d2c64105efabc 100644
--- a/mojo/public/platform/native/system_thunks.h
+++ b/mojo/public/platform/native/system_thunks.h
@@ -136,6 +136,22 @@ struct MojoSystemThunks {
MojoMessageHandle* message);
MojoResult (*FreeMessage)(MojoMessageHandle message);
MojoResult (*GetMessageBuffer)(MojoMessageHandle message, void** buffer);
+ MojoResult (*WrapPlatformHandle)(
+ const struct MojoPlatformHandle* platform_handle,
+ MojoHandle* mojo_handle);
+ MojoResult (*UnwrapPlatformHandle)(
+ MojoHandle mojo_handle,
+ struct MojoPlatformHandle* platform_handle);
+ MojoResult (*WrapPlatformSharedBufferHandle)(
+ const struct MojoPlatformHandle* platform_handle,
+ size_t num_bytes,
+ MojoPlatformSharedBufferHandleFlags flags,
+ MojoHandle* mojo_handle);
+ MojoResult (*UnwrapPlatformSharedBufferHandle)(
+ MojoHandle mojo_handle,
+ struct MojoPlatformHandle* platform_handle,
+ size_t* num_bytes,
+ MojoPlatformSharedBufferHandleFlags* flags);
};
#pragma pack(pop)
@@ -174,7 +190,11 @@ inline MojoSystemThunks MojoMakeSystemThunks() {
MojoReadMessageNew,
MojoAllocMessage,
MojoFreeMessage,
- MojoGetMessageBuffer};
+ MojoGetMessageBuffer,
+ MojoWrapPlatformHandle,
+ MojoUnwrapPlatformHandle,
+ MojoWrapPlatformSharedBufferHandle,
+ MojoUnwrapPlatformSharedBufferHandle};
return system_thunks;
}
#endif
« no previous file with comments | « mojo/public/cpp/system/platform_handle.cc ('k') | mojo/public/platform/native/system_thunks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698