Index: content/common/sandbox_linux/bpf_gpu_policy_linux.h |
diff --git a/content/common/sandbox_linux/bpf_gpu_policy_linux.h b/content/common/sandbox_linux/bpf_gpu_policy_linux.h |
index 6b1ba4a4c318520ceefc06f872559cfd33a6b352..6d6c2941fddea24b49f6c85cc7dbd76e86d82377 100644 |
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.h |
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include <vector> |
+#include "base/callback_forward.h" |
#include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h" |
namespace sandbox { |
@@ -28,13 +29,13 @@ class GpuProcessPolicy : public SandboxBPFBasePolicy { |
protected: |
// Start a broker process to handle open() inside the sandbox. |
- // |broker_sandboxer_callback| is a callback that will enable a suitable |
+ // |gpu_broker_child_init_callback| is a callback that will enable a suitable |
// sandbox for the broker process itself. |
jln (very slow on Chromium)
2014/02/20 23:38:52
Let's call it clearly broker_sandboxer_callback si
dshwang
2014/02/21 07:03:13
yep, done.
|
// |read_whitelist_extra| and |write_whitelist_extra| are lists of file |
// names that should be whitelisted by the broker process, in addition to |
// the basic ones. |
void InitGpuBrokerProcess( |
- bool (*broker_sandboxer_callback)(void), |
+ const base::Callback<bool(void)>& gpu_broker_child_init_callback, |
const std::vector<std::string>& read_whitelist_extra, |
const std::vector<std::string>& write_whitelist_extra); |