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

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: Use IPC::Channel directly instead of ChildProcess 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 // Please do not include Chrome-specific include files here.
jam 2011/06/21 20:54:08 this isn't the case anymore right?
Brad Chen 2011/06/21 23:43:48 Done.
8 // This include file is meant to be usable outside of Chrome.
9 #ifndef CHROME_COMMON_NACL_HELPER_LINUX_H_
10 #define CHROME_COMMON_NACL_HELPER_LINUX_H_
11 #pragma once
12
13 static const char kNaClHelperStartupAck[] = "NACLHELPER_OK";
jam 2011/06/21 20:54:08 nit: the chrome style is to have the extern cons
Brad Chen 2011/06/21 23:43:48 There is a problem is that this header is used to
14 static const char kNaClForkRequest[] = "NACLFORK";
15 // kNaClBrowserDescriptor and kNaClSandboxDescriptor must match
16 // content/browser/zygote_main_linux.cc kBrowserDescriptor and
17 // kMagicSandboxIPCDescriptor.
18 // We put the kNaClZygoteDescriptor on 3 together with the
19 // kNaClBrowserDescriptor. They are never used at the same
20 // time, and this prevents /dev/urandom from using the fd.
21 static const int kNaClBrowserDescriptor = 3;
22 static const int kNaClZygoteDescriptor = 3;
23 static const int kNaClSandboxDescriptor = 5;
24
25 static const int kNaClBrowserFDIndex = 0;
26 static const int kNaClDummyFDIndex = 1;
27 static const int kNaClParentFDIndex = 2;
28
29 #endif // CHROME_COMMON_NACL_HELPER_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698