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

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

Issue 9158005: RFC: Add an interface for having the browser open a pnacl support file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add a test, do some tweaks. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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 PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ 5 #ifndef PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_
6 #define PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ 6 #define PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_
7 7
8 #include "ppapi/c/pp_resource.h" 8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/c/pp_stdint.h" 9 #include "ppapi/c/pp_stdint.h"
10 10
11 #define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.2" 11 #define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.2"
(...skipping 14 matching lines...) Expand all
26 // /dev/urandom. On non-POSIX systems, this function returns 0. 26 // /dev/urandom. On non-POSIX systems, this function returns 0.
27 int (*UrandomFD)(void); 27 int (*UrandomFD)(void);
28 28
29 // Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI 29 // Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI
30 // proxy. This is so paranoid admins can effectively prevent untrusted shader 30 // proxy. This is so paranoid admins can effectively prevent untrusted shader
31 // code to be processed by the graphics stack. 31 // code to be processed by the graphics stack.
32 bool (*Are3DInterfacesDisabled)(); 32 bool (*Are3DInterfacesDisabled)();
33 33
34 // Enables the creation of sel_ldr processes from other than the main thread. 34 // Enables the creation of sel_ldr processes from other than the main thread.
35 void (*EnableBackgroundSelLdrLaunch)(); 35 void (*EnableBackgroundSelLdrLaunch)();
36
37 // Returns a read-only file descriptor of a file rooted in the Pnacl
38 // component directory, or -1 on error.
39 // Do we want this to take a completion callback and be async, or
40 // or could we make this happen on another thread?
41 int (*GetReadonlyPnaclFd)(const char* filename);
36 }; 42 };
37 43
38 #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ 44 #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698