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

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

Issue 2056513002: Plumb MojoReplaceHandleWithReducedRights() out. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_replace_reduce_1
Patch Set: Created 4 years, 6 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 3650d1f6c8de47def676306866e02457b364a99e..03f2ccbe91b7d2918aaadce9e637d2c6c92df0bb 100644
--- a/mojo/public/platform/native/system_thunks.h
+++ b/mojo/public/platform/native/system_thunks.h
@@ -132,6 +132,10 @@ struct MojoSystemThunks {
MojoHandleRights rights_to_remove,
MojoHandle* new_handle);
MojoResult (*DuplicateHandle)(MojoHandle handle, MojoHandle* new_handle);
+ MojoResult (*ReplaceHandleWithReducedRights)(
+ MojoHandle handle,
+ MojoHandleRights rights_to_remove,
+ MojoHandle* replacement_handle);
};
#pragma pack(pop)
@@ -168,6 +172,7 @@ inline MojoSystemThunks MojoMakeSystemThunks() {
MojoGetRights,
MojoDuplicateHandleWithReducedRights,
MojoDuplicateHandle,
+ MojoReplaceHandleWithReducedRights,
};
return system_thunks;
}

Powered by Google App Engine
This is Rietveld 408576698