| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ | 5 #ifndef COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ |
| 6 #define COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ | 6 #define COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "ipc/ipc_sync_channel.h" | 10 #include "ipc/ipc_sync_channel.h" |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 PP_NaClError error, | 274 PP_NaClError error, |
| 275 const char* error_message); | 275 const char* error_message); |
| 276 /* Performs internal setup when an instance is created. */ | 276 /* Performs internal setup when an instance is created. */ |
| 277 void (*InstanceCreated)(PP_Instance instance); | 277 void (*InstanceCreated)(PP_Instance instance); |
| 278 /* Performs internal cleanup when an instance is destroyed. */ | 278 /* Performs internal cleanup when an instance is destroyed. */ |
| 279 void (*InstanceDestroyed)(PP_Instance instance); | 279 void (*InstanceDestroyed)(PP_Instance instance); |
| 280 /* Returns the kind of SFI sandbox implemented by NaCl on this | 280 /* Returns the kind of SFI sandbox implemented by NaCl on this |
| 281 * platform. | 281 * platform. |
| 282 */ | 282 */ |
| 283 const char* (*GetSandboxArch)(void); | 283 const char* (*GetSandboxArch)(void); |
| 284 /* Logs the message via VLOG. */ | |
| 285 void (*Vlog)(const char* message); | |
| 286 /* Initializes internal state for a NaCl plugin. */ | 284 /* Initializes internal state for a NaCl plugin. */ |
| 287 void (*InitializePlugin)(PP_Instance instance, | 285 void (*InitializePlugin)(PP_Instance instance, |
| 288 uint32_t argc, | 286 uint32_t argc, |
| 289 const char* argn[], | 287 const char* argn[], |
| 290 const char* argv[]); | 288 const char* argv[]); |
| 291 /* Requests the NaCl manifest specified in the plugin arguments. */ | 289 /* Requests the NaCl manifest specified in the plugin arguments. */ |
| 292 void (*RequestNaClManifest)(PP_Instance instance, | 290 void (*RequestNaClManifest)(PP_Instance instance, |
| 293 struct PP_CompletionCallback callback); | 291 struct PP_CompletionCallback callback); |
| 294 struct PP_Var (*GetManifestBaseURL)(PP_Instance instance); | 292 struct PP_Var (*GetManifestBaseURL)(PP_Instance instance); |
| 295 /* Processes the NaCl manifest once it's been retrieved. | 293 /* Processes the NaCl manifest once it's been retrieved. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 int32_t opt_level, | 343 int32_t opt_level, |
| 346 PP_Bool use_subzero, | 344 PP_Bool use_subzero, |
| 347 const struct PPP_PexeStreamHandler_1_0* stream_handler, | 345 const struct PPP_PexeStreamHandler_1_0* stream_handler, |
| 348 void* stream_handler_user_data); | 346 void* stream_handler_user_data); |
| 349 }; | 347 }; |
| 350 /** | 348 /** |
| 351 * @} | 349 * @} |
| 352 */ | 350 */ |
| 353 | 351 |
| 354 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */ | 352 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */ |
| OLD | NEW |