Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // A mini-zygote specifically for Native Client. | |
| 6 | |
| 7 #ifndef CHROME_COMMON_NACL_HELPER_LINUX_H_ | |
| 8 #define CHROME_COMMON_NACL_HELPER_LINUX_H_ | |
| 9 #pragma once | |
| 10 | |
| 11 #define kNaClHelperStartupAck "NACLHELPER_OK" | |
| 12 #define kNaClForkRequest "NACLFORK" | |
| 13 // kNaClBrowserDescriptor and kNaClSandboxDescriptor must match | |
| 14 // content/browser/zygote_main_linux.cc kBrowserDescriptor and | |
| 15 // kMagicSandboxIPCDescriptor. | |
| 16 // We put the kNaClZygoteDescriptor on 3 together with the | |
| 17 // kNaClBrowserDescriptor. They are never used at the same | |
| 18 // time, and this prevents /dev/urandom from using the fd. | |
| 19 static const int kNaClBrowserDescriptor = 3; | |
|
jam
2011/06/22 00:49:52
nit: these should be #defines as well then?
Brad Chen
2011/06/22 16:10:31
Done.
| |
| 20 static const int kNaClZygoteDescriptor = 3; | |
| 21 static const int kNaClSandboxDescriptor = 5; | |
| 22 | |
| 23 static const int kNaClBrowserFDIndex = 0; | |
| 24 static const int kNaClDummyFDIndex = 1; | |
| 25 static const int kNaClParentFDIndex = 2; | |
| 26 | |
| 27 #endif // CHROME_COMMON_NACL_HELPER_LINUX_H_ | |
| OLD | NEW |