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

Unified Diff: content/common/zygote_commands_linux.h

Issue 10388013: Move the Linux zygote stuff into its own per-process directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/zygote_commands_linux.h
diff --git a/content/common/zygote_commands_linux.h b/content/common/zygote_commands_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..fbd767c1f77906ecef455384e221fca188b92028
--- /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_
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698