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 "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 * @} | 162 * @} |
163 */ | 163 */ |
164 | 164 |
165 /** | 165 /** |
166 * @addtogroup Structs | 166 * @addtogroup Structs |
167 * @{ | 167 * @{ |
168 */ | 168 */ |
169 struct PP_PNaClOptions { | 169 struct PP_PNaClOptions { |
170 PP_Bool translate; | 170 PP_Bool translate; |
171 PP_Bool is_debug; | 171 PP_Bool is_debug; |
| 172 PP_Bool use_subzero; |
172 int32_t opt_level; | 173 int32_t opt_level; |
173 }; | 174 }; |
174 /** | 175 /** |
175 * @} | 176 * @} |
176 */ | 177 */ |
177 | 178 |
178 /** | 179 /** |
179 * @addtogroup Typedefs | 180 * @addtogroup Typedefs |
180 * @{ | 181 * @{ |
181 */ | 182 */ |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 * plugin. | 301 * plugin. |
301 */ | 302 */ |
302 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); | 303 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); |
303 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, | 304 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, |
304 struct PP_Var* full_url, | 305 struct PP_Var* full_url, |
305 struct PP_PNaClOptions* pnacl_options, | 306 struct PP_PNaClOptions* pnacl_options, |
306 PP_Bool* uses_nonsfi_mode); | 307 PP_Bool* uses_nonsfi_mode); |
307 /* Returns the filenames for the llc and ld tools. */ | 308 /* Returns the filenames for the llc and ld tools. */ |
308 PP_Bool (*GetPnaclResourceInfo)(PP_Instance instance, | 309 PP_Bool (*GetPnaclResourceInfo)(PP_Instance instance, |
309 struct PP_Var* llc_tool_name, | 310 struct PP_Var* llc_tool_name, |
310 struct PP_Var* ld_tool_name); | 311 struct PP_Var* ld_tool_name, |
| 312 struct PP_Var* subzero_tool_name); |
311 /* PP_Var string of attributes describing the CPU features supported | 313 /* PP_Var string of attributes describing the CPU features supported |
312 * by the current architecture. The string is a comma-delimited list | 314 * by the current architecture. The string is a comma-delimited list |
313 * of attributes supported by LLVM in its -mattr= option: | 315 * of attributes supported by LLVM in its -mattr= option: |
314 * http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr */ | 316 * http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr */ |
315 struct PP_Var (*GetCpuFeatureAttrs)(void); | 317 struct PP_Var (*GetCpuFeatureAttrs)(void); |
316 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| | 318 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| |
317 * to information for a handle to a file containing its contents. | 319 * to information for a handle to a file containing its contents. |
318 * If metadata for identity-based validation caching is available | 320 * If metadata for identity-based validation caching is available |
319 * then it sets token information in |file_info| (otherwise left untouched). | 321 * then it sets token information in |file_info| (otherwise left untouched). |
320 */ | 322 */ |
(...skipping 29 matching lines...) Expand all Loading... |
350 int32_t opt_level, | 352 int32_t opt_level, |
351 const struct PPP_PexeStreamHandler_1_0* stream_handler, | 353 const struct PPP_PexeStreamHandler_1_0* stream_handler, |
352 void* stream_handler_user_data); | 354 void* stream_handler_user_data); |
353 }; | 355 }; |
354 /** | 356 /** |
355 * @} | 357 * @} |
356 */ | 358 */ |
357 | 359 |
358 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 360 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
359 | 361 |
OLD | NEW |