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

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: Make use_linux_zygote flag default to true, and remove the need for #ifdef's. Created 9 years 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
« no previous file with comments | « content/browser/plugin_loader_posix.cc ('k') | content/browser/utility_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8e79c2d5538ea7fd461fcc8fedc33b8c2f99ab4a 100644
--- a/content/browser/utility_process_host.h
+++ b/content/browser/utility_process_host.h
@@ -66,6 +66,8 @@ class CONTENT_EXPORT UtilityProcessHost : public BrowserChildProcessHost {
void set_exposed_dir(const FilePath& dir) { exposed_dir_ = dir; }
void set_no_sandbox(bool flag) { no_sandbox_ = flag; }
void set_child_flags(int flags) { child_flags_ = flags; }
+ void set_use_linux_zygote(bool flag) { use_linux_zygote_ = flag; }
+
#if defined(OS_POSIX)
void set_env(const base::environment_vector& env) { env_ = env; }
#endif
@@ -105,6 +107,11 @@ class CONTENT_EXPORT UtilityProcessHost : public BrowserChildProcessHost {
base::environment_vector env_;
+ // If the |no_sandbox_| flag is off, and we are on Linux, launch the
+ // utility process from the zygote.
+ // Can only be used for tasks that do not require FS access.
Aaron Boodman 2011/12/03 04:56:21 You might want to note that it defaults to true.
+ bool use_linux_zygote_;
+
bool started_;
DISALLOW_COPY_AND_ASSIGN(UtilityProcessHost);
« no previous file with comments | « content/browser/plugin_loader_posix.cc ('k') | content/browser/utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698