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

Side by Side Diff: chrome/browser/nacl_fork_delegate.h

Issue 6995121: New NaCl zygote implementation 2 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Dropping mods to content/browser/DEPS 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 #ifndef CHROME_BROWSER_NACL_FORK_DELEGATE_H_
6 #define CHROME_BROWSER_NACL_FORK_DELEGATE_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "content/common/zygote_fork_delegate.h"
11
12 class NaClForkDelegate : public ZygoteForkDelegate {
13 public:
14 NaClForkDelegate();
15 ~NaClForkDelegate();
16 virtual void Init(const bool sandboxed,
17 const int browserdesc,
18 const int sandboxdesc);
19 virtual bool CanHelp(const std::string& process_type);
20 virtual pid_t Fork(const std::vector<int>& fds);
21
22 private:
23 pid_t Pid() {
24 return pid_;
25 };
26 int FD() {
27 return fd_;
28 };
29
30 bool sandboxed_;
31 int fd_;
32 pid_t pid_;
33 };
34
35 #endif // CHROME_BROWSER_NACL_FORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698