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

Unified Diff: chrome/common/nacl_helper_linux.h

Issue 6995121: New NaCl zygote implementation 2 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixing includes for checkdeps.py Created 9 years, 6 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: chrome/common/nacl_helper_linux.h
diff --git a/chrome/common/nacl_helper_linux.h b/chrome/common/nacl_helper_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..b635aa6d66cdd28f97ab0a0a846a86407581f21a
--- /dev/null
+++ b/chrome/common/nacl_helper_linux.h
@@ -0,0 +1,23 @@
+// 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.
+
+// A mini-zygote specifically for Native Client.
+
+// Please do not include Chrome-specific include files here.
+// This include file is meant to be usable outside of Chrome.
+#ifndef CHROME_COMMON_NACL_HELPER_LINUX_H_
+#define CHROME_COMMON_NACL_HELPER_LINUX_H_
+#pragma once
+
+static const char kNaClHelperMagic[] = "NACLHELPER_OK";
+static const char kNaClForkRequest[] = "NACLFORK";
+static const int kNaClZygoteDescriptor = 3;
+static const int kNaClSandboxDescriptor = 5;
+
+static const int kNaClBrowserFDIndex = 0;
+static const int kNaClSandboxFDIndex = 1;
+static const int kNaClDummyFDIndex = 2;
+static const int kNaClParentFDIndex = 3;
+
+#endif // CHROME_COMMON_NACL_HELPER_LINUX_H_

Powered by Google App Engine
This is Rietveld 408576698