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

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

Issue 2000253002: Add thunks for MojoDuplicateHandle[WithReducedRights](). (Closed) Base URL: https://github.com/domokit/mojo.git@work792_dup_handle_1
Patch Set: 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
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 23f7d69f521a3800622ce76cc685662e9dcbb6ef..3650d1f6c8de47def676306866e02457b364a99e 100644
--- a/mojo/public/platform/native/system_thunks.h
+++ b/mojo/public/platform/native/system_thunks.h
@@ -127,6 +127,11 @@ struct MojoSystemThunks {
struct MojoDataPipeProducerOptions* options,
uint32_t options_num_bytes);
MojoResult (*GetRights)(MojoHandle handle, MojoHandleRights* rights);
+ MojoResult (*DuplicateHandleWithReducedRights)(
+ MojoHandle handle,
+ MojoHandleRights rights_to_remove,
+ MojoHandle* new_handle);
+ MojoResult (*DuplicateHandle)(MojoHandle handle, MojoHandle* new_handle);
};
#pragma pack(pop)
@@ -161,6 +166,8 @@ inline MojoSystemThunks MojoMakeSystemThunks() {
MojoSetDataPipeProducerOptions,
MojoGetDataPipeProducerOptions,
MojoGetRights,
+ MojoDuplicateHandleWithReducedRights,
+ MojoDuplicateHandle,
};
return system_thunks;
}
« no previous file with comments | « mojo/public/platform/native/system_impl_private_unittest.cc ('k') | mojo/public/platform/native/system_thunks.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698