| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MOJO_NACL_MOJO_SYSCALL_H_ | 5 #ifndef MOJO_NACL_MOJO_SYSCALL_H_ |
| 6 #define MOJO_NACL_MOJO_SYSCALL_H_ | 6 #define MOJO_NACL_MOJO_SYSCALL_H_ |
| 7 | 7 |
| 8 #include "mojo/public/c/system/types.h" | 8 #include "mojo/public/c/system/types.h" |
| 9 | 9 |
| 10 // Injects a NaClDesc for Mojo support and sets a MojoHandle to be provided to | 10 // Injects a NaClDesc for Mojo support and sets a MojoHandle to be provided to |
| 11 // untrusted code as a "service provider" MojoHandle. This provides the | 11 // untrusted code as a "service provider" MojoHandle. This provides the |
| 12 // implementation of the Mojo system API outside the NaCl sandbox and allows | 12 // implementation of the Mojo system API outside the NaCl sandbox and allows |
| 13 // untrusted code to communicate with Mojo interfaces outside the sandbox or in | 13 // untrusted code to communicate with Mojo interfaces outside the sandbox or in |
| 14 // other processes. | 14 // other processes. |
| 15 void InjectMojo(struct NaClApp* nap, MojoHandle handle); | 15 void InjectMojo(struct NaClApp* nap, MojoHandle handle); |
| 16 | 16 |
| 17 // Injects a NaClDesc for Mojo support. This provides the implementation of the | 17 // Injects a NaClDesc for Mojo support. This provides the implementation of the |
| 18 // Mojo system API outside the NaCl sandbox. | 18 // Mojo system API outside the NaCl sandbox. |
| 19 // TODO(teravest): Remove this once it is no longer called. | 19 // TODO(teravest): Remove this once it is no longer called. |
| 20 void InjectMojo(struct NaClApp* nap); | 20 void InjectMojo(struct NaClApp* nap); |
| 21 | 21 |
| 22 // Injects a "disabled" NaClDesc for Mojo support. This is to make debugging | 22 // Injects a "disabled" NaClDesc for Mojo support. This is to make debugging |
| 23 // more straightforward in the case where Mojo is not enabled for NaCl plugins. | 23 // more straightforward in the case where Mojo is not enabled for NaCl plugins. |
| 24 void InjectDisabledMojo(struct NaClApp* nap); | 24 void InjectDisabledMojo(struct NaClApp* nap); |
| 25 | 25 |
| 26 #endif // MOJO_NACL_MOJO_SYSCALL_H_ | 26 #endif // MOJO_NACL_MOJO_SYSCALL_H_ |
| OLD | NEW |