Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Unified Diff: content/browser/utility_process_host.h

Issue 8770025: Zygote most of the uses of the utility process on Linux (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698