diff options
author | bradchen@google.com <bradchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-16 02:28:28 +0000 |
---|---|---|
committer | bradchen@google.com <bradchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-16 02:28:28 +0000 |
commit | ae27f1c3adb0fc3c7a21c171375c32cef6f9a144 (patch) | |
tree | 30845b0eba26e108b11f47facddf6cc902671bc9 /content/browser/zygote_host_linux.h | |
parent | 0d97bfdd73c7b10f9912b1632403b167b8bd00a4 (diff) | |
download | chromium_src-ae27f1c3adb0fc3c7a21c171375c32cef6f9a144.zip chromium_src-ae27f1c3adb0fc3c7a21c171375c32cef6f9a144.tar.gz chromium_src-ae27f1c3adb0fc3c7a21c171375c32cef6f9a144.tar.bz2 |
Modify the Chrome Linux zygote to support a ZygoteForkHelper for flexible
fork implementations.
BUG=nativeclient:480
TEST=existing zygote tests
Review URL: http://codereview.chromium.org/7397003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/zygote_host_linux.h')
-rw-r--r-- | content/browser/zygote_host_linux.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/content/browser/zygote_host_linux.h b/content/browser/zygote_host_linux.h index 5ead5f5..9098e6d 100644 --- a/content/browser/zygote_host_linux.h +++ b/content/browser/zygote_host_linux.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -32,10 +32,12 @@ class ZygoteHost { void Init(const std::string& sandbox_cmd); - // Tries to start a renderer process. Returns its pid on success, otherwise + // Tries to start a process of type indicated by process_type. + // Returns its pid on success, otherwise // base::kNullProcessHandle; - pid_t ForkRenderer(const std::vector<std::string>& command_line, - const base::GlobalDescriptors::Mapping& mapping); + pid_t ForkRequest(const std::vector<std::string>& command_line, + const base::GlobalDescriptors::Mapping& mapping, + const std::string& process_type); void EnsureProcessTerminated(pid_t process); // Get the termination status (and, optionally, the exit code) of |