| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| 11 | 11 |
| 12 #include <map> | 12 #include <map> |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "native_client/src/shared/imc/nacl_imc_c.h" | 15 #include "native_client/src/shared/imc/nacl_imc_c.h" |
| 16 #include "ppapi/c/pp_completion_callback.h" | 16 #include "ppapi/c/pp_completion_callback.h" |
| 17 #include "ppapi/c/pp_instance.h" | 17 #include "ppapi/c/pp_instance.h" |
| 18 #include "ppapi/c/private/ppb_instance_private.h" | 18 #include "ppapi/c/private/ppb_instance_private.h" |
| 19 #include "ppapi/c/private/ppb_nacl_private.h" | 19 #include "ppapi/c/private/ppb_nacl_private.h" |
| 20 | 20 |
| 21 typedef PP_ExternalPluginResult (*LaunchNaClProcessFunc)( | 21 typedef PP_ExternalPluginResult (*LaunchNaClProcessFunc)( |
| 22 PP_Instance instance, | 22 PP_Instance instance, |
| 23 PP_Bool main_service_runtime, |
| 23 const char* alleged_url, | 24 const char* alleged_url, |
| 24 PP_Bool uses_irt, | 25 PP_Bool uses_irt, |
| 25 PP_Bool uses_ppapi, | 26 PP_Bool uses_ppapi, |
| 26 PP_Bool uses_nonsfi_mode, | 27 PP_Bool uses_nonsfi_mode, |
| 27 PP_Bool enable_ppapi_dev, | 28 PP_Bool enable_ppapi_dev, |
| 28 PP_Bool enable_dyncode_syscalls, | 29 PP_Bool enable_dyncode_syscalls, |
| 29 PP_Bool enable_exception_handling, | 30 PP_Bool enable_exception_handling, |
| 30 PP_Bool enable_crash_throttling, | 31 PP_Bool enable_crash_throttling, |
| 31 const PPP_ManifestService* manifest_service_interface, | 32 const PPP_ManifestService* manifest_service_interface, |
| 32 void* manifest_service_user_data, | 33 void* manifest_service_user_data, |
| 33 NaClHandle* result_socket, | 34 NaClHandle* result_socket, |
| 34 struct PP_Var* error_message, | |
| 35 PP_CompletionCallback callback); | 35 PP_CompletionCallback callback); |
| 36 | 36 |
| 37 | |
| 38 extern LaunchNaClProcessFunc launch_nacl_process; | 37 extern LaunchNaClProcessFunc launch_nacl_process; |
| 39 | 38 |
| 40 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ | 39 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ |
| OLD | NEW |