Chromium Code Reviews| Index: sandbox/mac/os_compatibility.h |
| diff --git a/sandbox/mac/os_compatibility.h b/sandbox/mac/os_compatibility.h |
| index 2d9b096c4fc07f605865814631b4796a94515bc0..077432bb4dab837e3220a80cda1389f046d51930 100644 |
| --- a/sandbox/mac/os_compatibility.h |
| +++ b/sandbox/mac/os_compatibility.h |
| @@ -21,6 +21,8 @@ namespace sandbox { |
| typedef std::string (*LookUp2GetRequestName)(const mach_msg_header_t*); |
| typedef void (*LookUp2FillReply)(mach_msg_header_t*, mach_port_t service_port); |
| +typedef bool (*SwapIntegerIsGetOnly)(const mach_msg_header_t*); |
| + |
| struct LaunchdCompatibilityShim { |
| // The msgh_id for look_up2. |
| mach_msg_id_t msg_id_look_up2; |
| @@ -35,6 +37,11 @@ struct LaunchdCompatibilityShim { |
| // A function to formulate a reply to a look_up2 message, given the reply |
| // message and the port to return as the service. |
| LookUp2FillReply look_up2_fill_reply; |
| + |
| + // A function to take a swap_integer message and return true if the message |
| + // is only getting the value of a key, neither setting it directly, nor |
| + // swapping two kes. |
|
Mark Mentovai
2014/05/15 22:36:56
Spelling nit: keys.
I don’t actually see in the c
Robert Sesek
2014/05/15 22:54:17
Done.
|
| + SwapIntegerIsGetOnly swap_integer_is_get_only; |
| }; |
| // Gets the compatibility shim for the launchd job subsystem. |