Index: sandbox/linux/services/broker_process.h |
diff --git a/sandbox/linux/services/broker_process.h b/sandbox/linux/services/broker_process.h |
index 6b13b33046d2eee53a305054d3a4bea3fe6d9b3c..57c0db1d445de722448bdf1de9bfa58e9fe2a2ee 100644 |
--- a/sandbox/linux/services/broker_process.h |
+++ b/sandbox/linux/services/broker_process.h |
@@ -9,6 +9,7 @@ |
#include <vector> |
#include "base/basictypes.h" |
+#include "base/callback_forward.h" |
#include "base/pickle.h" |
#include "base/process/process.h" |
@@ -42,9 +43,9 @@ class BrokerProcess { |
~BrokerProcess(); |
// Will initialize the broker process. There should be no threads at this |
// point, since we need to fork(). |
- // sandbox_callback is a function that should be called to enable the |
- // sandbox in the broker. |
- bool Init(bool (*sandbox_callback)(void)); |
+ // broker_process_init_callback is a function that should be called to enable |
jln (very slow on Chromium)
2014/02/20 23:38:52
s/function/Callback/
Or simply:
"broker_process_i
dshwang
2014/02/21 07:03:13
yep, done.
|
+ // the sandbox in the broker. |
+ bool Init(const base::Callback<bool(void)>& broker_process_init_callback); |
// Can be used in place of access(). Will be async signal safe. |
// X_OK will always return an error in practice since the broker process |