diff options
| author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-29 18:34:20 +0000 |
|---|---|---|
| committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-29 18:34:20 +0000 |
| commit | 52356d21dd088abc0bf57303ceb5399c7cd998ef (patch) | |
| tree | 5a36808d51449c3eaeaff102a20d99f01735d685 /content/browser | |
| parent | 62de8837965ca7ad93bdd72f4061b3243ab5731d (diff) | |
| download | chromium_src-52356d21dd088abc0bf57303ceb5399c7cd998ef.zip chromium_src-52356d21dd088abc0bf57303ceb5399c7cd998ef.tar.gz chromium_src-52356d21dd088abc0bf57303ceb5399c7cd998ef.tar.bz2 | |
Remove render_sandbox_host_linux.h include from chrome. It was only used to get the pid of that process, so added a method to the ZygoteHost interface to return it instead.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9536019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
| -rw-r--r-- | content/browser/zygote_host_impl_linux.cc | 4 | ||||
| -rw-r--r-- | content/browser/zygote_host_impl_linux.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/zygote_host_impl_linux.cc b/content/browser/zygote_host_impl_linux.cc index b2d9380..7a1818d 100644 --- a/content/browser/zygote_host_impl_linux.cc +++ b/content/browser/zygote_host_impl_linux.cc @@ -454,6 +454,10 @@ pid_t ZygoteHostImpl::GetPid() const { return pid_; } +pid_t ZygoteHostImpl::GetSandboxHelperPid() const { + return RenderSandboxHostLinux::GetInstance()->pid(); +} + int ZygoteHostImpl::GetSandboxStatus() const { if (have_read_sandbox_status_word_) return sandbox_status_; diff --git a/content/browser/zygote_host_impl_linux.h b/content/browser/zygote_host_impl_linux.h index 739cac6..3c6e824 100644 --- a/content/browser/zygote_host_impl_linux.h +++ b/content/browser/zygote_host_impl_linux.h @@ -51,6 +51,7 @@ class CONTENT_EXPORT ZygoteHostImpl : public content::ZygoteHost { // ZygoteHost implementation: virtual pid_t GetPid() const OVERRIDE; + virtual pid_t GetSandboxHelperPid() const OVERRIDE; virtual int GetSandboxStatus() const OVERRIDE; virtual void AdjustRendererOOMScore(base::ProcessHandle process_handle, int score) OVERRIDE; |
