Chromium Code Reviews| Index: src/shared/imc/nacl_imc_c.h |
| diff --git a/src/shared/imc/nacl_imc_c.h b/src/shared/imc/nacl_imc_c.h |
| index ceae9f642f4982652086ea849633e37294f6aab2..37caa7b5aca7641b0232fe1dd971c628ee44597c 100644 |
| --- a/src/shared/imc/nacl_imc_c.h |
| +++ b/src/shared/imc/nacl_imc_c.h |
| @@ -236,6 +236,27 @@ typedef NaClHandle (*NaClCreateMemoryObjectFunc)(size_t length, int executable); |
| */ |
| void NaClSetCreateMemoryObjectFunc(NaClCreateMemoryObjectFunc func); |
| +#if NACL_WINDOWS |
| +/* |
| + * Type of function supplied to NaClSetBrokerDuplicateHandleFunc(). |
| + * Such a function copies a Windows handle into the target process |
| + * with the given process ID. This is a more restricted version of |
| + * Windows' DuplicateHandle() that can send handles but not retrieve |
| + * them. |
| + */ |
| +typedef int (*NaClBrokerDuplicateHandleFunc)(NaClHandle source_handle, |
| + uint32_t process_id, |
|
sehr (please use chromium)
2012/04/10 21:27:35
perhaps "target_process_id" just for emphasis.
Mark Seaborn
2012/04/10 21:47:23
Done.
|
| + NaClHandle *target_handle, |
| + uint32_t desired_access, |
| + uint32_t options); |
| + |
| +/* |
| + * This allows a replacement for Windows' DuplicateHandle() to be |
| + * provided that works in an outer sandbox. |
| + */ |
| +void NaClSetBrokerDuplicateHandleFunc(NaClBrokerDuplicateHandleFunc func); |
| +#endif |
| + |
| /* |
| * Creates a memory object of length bytes. |
| * |