OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_NACL_HELPER_LINUX_H_ | 5 #ifndef COMPONENTS_NACL_COMMON_NACL_HELPER_LINUX_H_ |
6 #define CHROME_COMMON_NACL_HELPER_LINUX_H_ | 6 #define COMPONENTS_NACL_COMMON_NACL_HELPER_LINUX_H_ |
7 | 7 |
8 // A mini-zygote specifically for Native Client. This file defines | 8 // A mini-zygote specifically for Native Client. This file defines |
9 // constants used to implement communication between the nacl_helper | 9 // constants used to implement communication between the nacl_helper |
10 // process and the Chrome zygote. | 10 // process and the Chrome zygote. |
11 | 11 |
12 // Used by Helper to tell Zygote it has started successfully. | 12 // Used by Helper to tell Zygote it has started successfully. |
13 #define kNaClHelperStartupAck "NACLHELPER_OK" | 13 #define kNaClHelperStartupAck "NACLHELPER_OK" |
14 // Used by Zygote to ask Helper to fork a new NaCl loader. | 14 // Used by Zygote to ask Helper to fork a new NaCl loader. |
15 #define kNaClForkRequest "NACLFORK" | 15 #define kNaClForkRequest "NACLFORK" |
16 | 16 |
(...skipping 15 matching lines...) Expand all Loading... |
32 // of three file descriptors. These constants are used as indicies | 32 // of three file descriptors. These constants are used as indicies |
33 // into the array. | 33 // into the array. |
34 // Used to pass in the descriptor for talking to the Browser | 34 // Used to pass in the descriptor for talking to the Browser |
35 #define kNaClBrowserFDIndex 0 | 35 #define kNaClBrowserFDIndex 0 |
36 // The next two are used in the protocol for discovering the | 36 // The next two are used in the protocol for discovering the |
37 // child processes real PID from within the SUID sandbox. See | 37 // child processes real PID from within the SUID sandbox. See |
38 // http://code.google.com/p/chromium/wiki/LinuxZygote | 38 // http://code.google.com/p/chromium/wiki/LinuxZygote |
39 #define kNaClDummyFDIndex 1 | 39 #define kNaClDummyFDIndex 1 |
40 #define kNaClParentFDIndex 2 | 40 #define kNaClParentFDIndex 2 |
41 | 41 |
42 #endif // CHROME_COMMON_NACL_HELPER_LINUX_H_ | 42 #endif // COMPONENTS_NACL_COMMON_NACL_HELPER_LINUX_H_ |
OLD | NEW |