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

Side by Side 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: Follow #define conventions 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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"
Evan Martin 2011/06/24 18:57:33 Why #define and not char[]? Why no comments?
Brad Chen 2011/06/25 22:14:51 I've added comments. The reason I'm not using the
12 #define kNaClForkRequest "NACLFORK"
13 // kNaClBrowserDescriptor and kNaClSandboxDescriptor must match
14 // content/browser/zygote_main_linux.cc kBrowserDescriptor and
15 // kMagicSandboxIPCDescriptor.
Evan Martin 2011/06/24 18:57:33 This will likely regress unless you either are ver
Brad Chen 2011/06/25 22:14:51 I will add better comments to this file. My first
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 #define kNaClBrowserDescriptor 3
20 #define kNaClZygoteDescriptor 3
21 #define kNaClSandboxDescriptor 5
22
23 #define kNaClBrowserFDIndex 0
24 #define kNaClDummyFDIndex 1
25 #define kNaClParentFDIndex 2
26
27 #endif // CHROME_COMMON_NACL_HELPER_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698