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..84de396a229c2b5cf1c9243c1bb590fd3e622d93 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 will be called in the new broker process, |
+ // after fork() returns. |
+ 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 |