Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: ppapi/c/private/ppb_nacl_private.h

Issue 649603004: Non-SFI NaCl: Batch-open resource files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 5
6 /* From private/ppb_nacl_private.idl modified Fri Jan 23 09:09:44 2015. */ 6 /* From private/ppb_nacl_private.idl modified Wed Feb 4 14:24:53 2015. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ 8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ 9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_stdint.h" 15 #include "ppapi/c/pp_stdint.h"
16 #include "ppapi/c/pp_var.h" 16 #include "ppapi/c/pp_var.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 typedef void (*PP_OpenResourceCompletionCallback)(void* user_data, 184 typedef void (*PP_OpenResourceCompletionCallback)(void* user_data,
185 PP_FileHandle file_handle); 185 PP_FileHandle file_handle);
186 /** 186 /**
187 * @} 187 * @}
188 */ 188 */
189 189
190 /** 190 /**
191 * @addtogroup Structs 191 * @addtogroup Structs
192 * @{ 192 * @{
193 */ 193 */
194 /* Corresponds to NaClFileInfo in 194 /* Corresponds to NaClFileInfo in native_client/src/public/nacl_file_info.h */
Mark Seaborn 2015/02/12 03:57:34 If you rebase, you'll find this comment is gone (s
195 * native_client/src/trusted/validator/nacl_file_info.h */
196 struct PP_NaClFileInfo { 195 struct PP_NaClFileInfo {
197 PP_FileHandle handle; 196 PP_FileHandle handle;
198 /* See NaClFileToken comment in nacl_file_info.h */ 197 /* See NaClFileToken comment in nacl_file_info.h */
199 uint64_t token_lo; 198 uint64_t token_lo;
200 uint64_t token_hi; 199 uint64_t token_hi;
201 }; 200 };
202 /** 201 /**
203 * @} 202 * @}
204 */ 203 */
205 204
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 * of attributes supported by LLVM in its -mattr= option: 316 * of attributes supported by LLVM in its -mattr= option:
318 * http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr */ 317 * http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr */
319 struct PP_Var (*GetCpuFeatureAttrs)(void); 318 struct PP_Var (*GetCpuFeatureAttrs)(void);
320 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| 319 /* Downloads the .nexe file at the given URL to a file, and sets |file_info|
321 * to information for a handle to a file containing its contents. 320 * to information for a handle to a file containing its contents.
322 * If metadata for identity-based validation caching is available 321 * If metadata for identity-based validation caching is available
323 * then it sets token information in |file_info| (otherwise left untouched). 322 * then it sets token information in |file_info| (otherwise left untouched).
324 */ 323 */
325 void (*DownloadNexe)(PP_Instance instance, 324 void (*DownloadNexe)(PP_Instance instance,
326 const char* url, 325 const char* url,
326 PP_Bool download_resource_files,
Mark Seaborn 2015/02/12 03:57:34 How about "prefetch_resource_files", to be more de
Yusuke Sato 2015/02/13 23:01:17 Done. (removed)
327 struct PP_NaClFileInfo* file_info, 327 struct PP_NaClFileInfo* file_info,
328 struct PP_CompletionCallback callback); 328 struct PP_CompletionCallback callback);
329 /* Reports the status of sel_ldr for UMA reporting. 329 /* Reports the status of sel_ldr for UMA reporting.
330 * |max_status| has to be provided because the implementation of this 330 * |max_status| has to be provided because the implementation of this
331 * interface can't access the NaClErrorCode enum. 331 * interface can't access the NaClErrorCode enum.
332 */ 332 */
333 void (*ReportSelLdrStatus)(PP_Instance instance, 333 void (*ReportSelLdrStatus)(PP_Instance instance,
334 int32_t load_status, 334 int32_t load_status,
335 int32_t max_status); 335 int32_t max_status);
336 /* Logs time taken by an operation to UMA histograms. 336 /* Logs time taken by an operation to UMA histograms.
(...skipping 19 matching lines...) Expand all
356 void* stream_handler_user_data); 356 void* stream_handler_user_data);
357 }; 357 };
358 358
359 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; 359 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private;
360 /** 360 /**
361 * @} 361 * @}
362 */ 362 */
363 363
364 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ 364 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */
365 365
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698