summaryrefslogtreecommitdiffstats
path: root/ppapi/c
diff options
context:
space:
mode:
authormnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 18:06:44 +0000
committermnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 18:06:44 +0000
commitc98851c7cbde850757fde78cb8259e53afb7b360 (patch)
treeeaee5a0b3e6e4cdfb6355ae1a35004ce6dfcc13b /ppapi/c
parent387cbf8c77d05be7c2fb6d9d80408d3325acde8c (diff)
downloadchromium_src-c98851c7cbde850757fde78cb8259e53afb7b360.zip
chromium_src-c98851c7cbde850757fde78cb8259e53afb7b360.tar.gz
chromium_src-c98851c7cbde850757fde78cb8259e53afb7b360.tar.bz2
Make NaCl PPAPI proxy honor the Disable3DApis policy.
BUG=chromium:90037 TEST=manual Review URL: http://codereview.chromium.org/7808001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r--ppapi/c/private/ppb_nacl_private.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/ppapi/c/private/ppb_nacl_private.h b/ppapi/c/private/ppb_nacl_private.h
index 3b07a9b..b741ae2 100644
--- a/ppapi/c/private/ppb_nacl_private.h
+++ b/ppapi/c/private/ppb_nacl_private.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,7 +8,7 @@
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
-#define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.1"
+#define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.2"
struct PPB_NaCl_Private {
// This function launches NaCl's sel_ldr process. On success, the function
@@ -24,6 +24,11 @@ struct PPB_NaCl_Private {
// On POSIX systems, this function returns the file descriptor of
// /dev/urandom. On non-POSIX systems, this function returns 0.
int (*UrandomFD)(void);
+
+ // Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI
+ // proxy. This is so paranoid admins can effectively prevent untrusted shader
+ // code to be processed by the graphics stack.
+ bool (*Are3DInterfacesDisabled)();
};
#endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_