Index: content/browser/utility_process_host.h |
diff --git a/content/browser/utility_process_host.h b/content/browser/utility_process_host.h |
index de5361057282a9ca37a22328a914060dd6e2265c..9e651e4ad18c0cd3c339f1532c4eabcf35d12444 100644 |
--- a/content/browser/utility_process_host.h |
+++ b/content/browser/utility_process_host.h |
@@ -69,6 +69,9 @@ class CONTENT_EXPORT UtilityProcessHost : public BrowserChildProcessHost { |
#if defined(OS_POSIX) |
void set_env(const base::environment_vector& env) { env_ = env; } |
#endif |
+#if defined(OS_LINUX) |
+ void set_should_use_zygote(bool flag) { should_use_zygote_ = flag; } |
+#endif |
protected: |
// Allow these methods to be overridden for tests. |
@@ -105,6 +108,13 @@ class CONTENT_EXPORT UtilityProcessHost : public BrowserChildProcessHost { |
base::environment_vector env_; |
+#if defined(OS_LINUX) |
Aaron Boodman
2011/12/02 03:10:04
It's a shame to require #ifdefs at all the call si
Jorge Lucangeli Obes
2011/12/02 18:27:16
SGTM, will do.
|
+ // If the |no_sandbox_| flag is off, launch the utility process from the |
+ // zygote. |
+ // Can only be used for tasks that do not require FS access. |
+ bool should_use_zygote_; |
+#endif |
+ |
bool started_; |
DISALLOW_COPY_AND_ASSIGN(UtilityProcessHost); |