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

Side by Side Diff: ppapi/api/private/finish_writing_these/ppb_nacl_private.idl

Issue 10815080: Add an interface for nacl to create delete-on-close temp files, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert buildbot hack Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/pepper/ppb_nacl_private_impl.cc ('k') | ppapi/c/private/pp_file_handle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /* This file contains NaCl private interfaces. */ 6 /* This file contains NaCl private interfaces. */
7 7
8 #include "ppapi/c/private/pp_file_handle.h"
9
8 /* PPB_NaCl_Private */ 10 /* PPB_NaCl_Private */
9 interface PPB_NaCl_Private_0_6 { 11 interface PPB_NaCl_Private_0_7 {
10 /* This function launches NaCl's sel_ldr process. On success, the function 12 /* This function launches NaCl's sel_ldr process. On success, the function
11 * returns true, otherwise it returns false. When it returns true, it will 13 * returns true, otherwise it returns false. When it returns true, it will
12 * write |socket_count| nacl::Handles to imc_handles. 14 * write |socket_count| nacl::Handles to imc_handles.
13 */ 15 */
14 bool LaunchSelLdr([in] PP_Instance instance, 16 bool LaunchSelLdr([in] PP_Instance instance,
15 [in] str_t alleged_url, 17 [in] str_t alleged_url,
16 [in] int32_t socket_count, 18 [in] int32_t socket_count,
17 [out] mem_t imc_handles); 19 [out] mem_t imc_handles);
18 20
19 /* This function starts the PPAPI proxy so the nexe can communicate with the 21 /* This function starts the PPAPI proxy so the nexe can communicate with the
(...skipping 10 matching lines...) Expand all
30 * proxy. This is so paranoid admins can effectively prevent untrusted shader 32 * proxy. This is so paranoid admins can effectively prevent untrusted shader
31 * code to be processed by the graphics stack. 33 * code to be processed by the graphics stack.
32 */ 34 */
33 bool Are3DInterfacesDisabled(); 35 bool Are3DInterfacesDisabled();
34 36
35 /* Returns a read-only file descriptor of a file rooted in the Pnacl 37 /* Returns a read-only file descriptor of a file rooted in the Pnacl
36 * component directory, or -1 on error. 38 * component directory, or -1 on error.
37 * Do we want this to take a completion callback and be async, or 39 * Do we want this to take a completion callback and be async, or
38 * could we make this happen on another thread? 40 * could we make this happen on another thread?
39 */ 41 */
40 int32_t GetReadonlyPnaclFd([in] str_t filename); 42 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename);
43
44 /* This creates a temporary file that will be deleted by the time
45 * the last handle is closed (or earlier on POSIX systems), and
46 * returns a posix handle to that temporary file.
47 */
48 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance);
41 }; 49 };
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/ppb_nacl_private_impl.cc ('k') | ppapi/c/private/pp_file_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698