diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-08 19:28:51 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-08 19:28:51 +0000 |
commit | a31fe0f7e41d48442ba44d2c0dd51581fcda408f (patch) | |
tree | e49b44af8c798ad056a360973dfd0b47d6889d40 /content/common | |
parent | cd9a61c70012ba2d7062f861d9ae3fe4b831f277 (diff) | |
download | chromium_src-a31fe0f7e41d48442ba44d2c0dd51581fcda408f.zip chromium_src-a31fe0f7e41d48442ba44d2c0dd51581fcda408f.tar.gz chromium_src-a31fe0f7e41d48442ba44d2c0dd51581fcda408f.tar.bz2 |
Move the Linux zygote stuff into its own per-process directory.
The zygote is really a separate process and doesn't belong in the browser
subdirectory. I separated out the common constants used for communication into
content/[public/]/common so the zygote code doesn't depend on browser.
This leaves zygote_main_linux alone in its own directory. I'm going to be doing
some more refactoring and probably adding a new file or two here. This does
not yet add a new build target for the zygot process.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10388013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r-- | content/common/zygote_commands_linux.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/content/common/zygote_commands_linux.h b/content/common/zygote_commands_linux.h new file mode 100644 index 0000000..fbd767c --- /dev/null +++ b/content/common/zygote_commands_linux.h @@ -0,0 +1,32 @@ +// Copyright (c) 2012 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. + +#ifndef CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_ +#define CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_ + +namespace content { + +// Contents of the initial message sent from the zygote to the browser when it +// is ready to go. +static const char kZygoteHelloMessage[] = "ZYGOTE_OK"; + +// These are the command codes used on the wire between the browser and the +// zygote. +enum { + // Fork off a new renderer. + kZygoteCommandFork = 0, + + // Reap a renderer child. + kZygoteCommandReap = 1, + + // Check what happend to a child process. + kZygoteCommandGetTerminationStatus = 2, + + // Read a bitmask of kSandboxLinux* + kZygoteCommandGetSandboxStatus = 3 +}; + +} // namespace content + +#endif // CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_ |