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

Side by Side Diff: components/nacl/common/nacl_helper_linux.h

Issue 22911027: Pass StatsTable shared memory via global descriptors on Posix rather than using named shared memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add empty line Created 7 years, 2 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 unified diff | Download patch
« no previous file with comments | « base/metrics/stats_table.cc ('k') | components/nacl/zygote/nacl_fork_delegate_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_NACL_COMMON_NACL_HELPER_LINUX_H_ 5 #ifndef COMPONENTS_NACL_COMMON_NACL_HELPER_LINUX_H_
6 #define COMPONENTS_NACL_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 #define kNaClMaxIPCMessageLength 2048 12 #define kNaClMaxIPCMessageLength 2048
13 13
14 // Used by Helper to tell Zygote it has started successfully. 14 // Used by Helper to tell Zygote it has started successfully.
15 #define kNaClHelperStartupAck "NACLHELPER_OK" 15 #define kNaClHelperStartupAck "NACLHELPER_OK"
16 16
17 enum NaClZygoteIPCCommand { 17 enum NaClZygoteIPCCommand {
18 kNaClForkRequest, 18 kNaClForkRequest,
19 kNaClGetTerminationStatusRequest, 19 kNaClGetTerminationStatusRequest,
20 }; 20 };
21 21
22 // The next set of constants define global Linux file descriptors. 22 // The next set of constants define global Linux file descriptors.
23 // For communications between NaCl loader and browser. 23 // For communications between NaCl loader and browser.
24 // See also content/common/zygote_main_linux.cc and 24 // See also content/common/zygote_main_linux.cc and
25 // http://code.google.com/p/chromium/wiki/LinuxZygote 25 // http://code.google.com/p/chromium/wiki/LinuxZygote
26 26
27 // For communications between NaCl loader and zygote. 27 // For communications between NaCl loader and zygote.
28 #define kNaClZygoteDescriptor 3 28 #define kNaClZygoteDescriptor 3
29 // For communications between the NaCl loader process and
30 // the SUID sandbox.
31 #define kNaClSandboxDescriptor 5
32 // NOTE: kNaClSandboxDescriptor must match
33 // content/browser/zygote_main_linux.cc
34 // kMagicSandboxIPCDescriptor.
35 29
36 #endif // COMPONENTS_NACL_COMMON_NACL_HELPER_LINUX_H_ 30 #endif // COMPONENTS_NACL_COMMON_NACL_HELPER_LINUX_H_
OLDNEW
« no previous file with comments | « base/metrics/stats_table.cc ('k') | components/nacl/zygote/nacl_fork_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698