| Index: chrome/browser/nacl_fork_delegate.h
|
| diff --git a/chrome/browser/nacl_fork_delegate.h b/chrome/browser/nacl_fork_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..27c577863c0025e8ed970f94e99f1002bad13daf
|
| --- /dev/null
|
| +++ b/chrome/browser/nacl_fork_delegate.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_NACL_FORK_DELEGATE_H_
|
| +#define CHROME_BROWSER_NACL_FORK_DELEGATE_H_
|
| +#pragma once
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "content/common/zygote_fork_delegate.h"
|
| +
|
| +class NaClForkDelegate : public ZygoteForkDelegate {
|
| + public:
|
| + NaClForkDelegate();
|
| + ~NaClForkDelegate();
|
| + virtual void Init(const bool sandboxed,
|
| + const int browserdesc,
|
| + const int sandboxdesc);
|
| + virtual bool CanHelp(const std::string& process_type);
|
| + virtual pid_t Fork(const std::vector<int>& fds);
|
| +
|
| + private:
|
| + pid_t Pid() {
|
| + return pid_;
|
| + };
|
| + int FD() {
|
| + return fd_;
|
| + };
|
| +
|
| + bool sandboxed_;
|
| + int fd_;
|
| + pid_t pid_;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_NACL_FORK_DELEGATE_H_
|
|
|