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

Unified Diff: content/browser/zygote_host/zygote_host_impl_linux.h

Issue 1702273002: Move use_suid_sandbox_for_adj_oom_score_ logic to zygote_host_impl_linux.cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 4 years, 10 months 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/zygote_host/zygote_host_impl_linux.h
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.h b/content/browser/zygote_host/zygote_host_impl_linux.h
index e640a990a6f2e992a9726c34874a3a7e7b55f8cd..e42a222913f7294c8c0e2b9d57d8ec94363e38d0 100644
--- a/content/browser/zygote_host/zygote_host_impl_linux.h
+++ b/content/browser/zygote_host/zygote_host_impl_linux.h
@@ -37,6 +37,8 @@ class CONTENT_EXPORT ZygoteHostImpl : public ZygoteHost {
// Returns whether or not this pid is the pid of a zygote.
bool IsZygotePid(pid_t pid) override;
+ bool ShouldUseNamespaceSandbox();
+
void SetRendererSandboxStatus(int status);
int GetRendererSandboxStatus() const override;
void AdjustRendererOOMScore(base::ProcessHandle process_handle,
@@ -49,6 +51,7 @@ class CONTENT_EXPORT ZygoteHostImpl : public ZygoteHost {
~ZygoteHostImpl() override;
int renderer_sandbox_status_;
+ bool should_use_namespace_sandbox_;
bool use_suid_sandbox_for_adj_oom_score_;
std::string sandbox_binary_;
// This lock protects the |zygote_pids_| set.
« no previous file with comments | « content/browser/zygote_host/zygote_communication_linux.cc ('k') | content/browser/zygote_host/zygote_host_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698