| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_COMMON_NACL_FORK_DELEGATE_LINUX_H_ | 5 #ifndef CHROME_APP_NACL_FORK_DELEGATE_LINUX_H_ |
| 6 #define CHROME_COMMON_NACL_FORK_DELEGATE_LINUX_H_ | 6 #define CHROME_APP_NACL_FORK_DELEGATE_LINUX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "content/common/zygote_fork_delegate_linux.h" | 11 #include "content/public/common/zygote_fork_delegate_linux.h" |
| 12 | 12 |
| 13 // The NaClForkDelegate is created during Chrome linux zygote | 13 // The NaClForkDelegate is created during Chrome linux zygote |
| 14 // initialization, and provides "fork()" functionality with | 14 // initialization, and provides "fork()" functionality with |
| 15 // NaCl specific process characteristics (specifically address | 15 // NaCl specific process characteristics (specifically address |
| 16 // space layout) as an alternative to forking the zygote. | 16 // space layout) as an alternative to forking the zygote. |
| 17 // A new delegate is passed in as an argument to ZygoteMain(). | 17 // A new delegate is passed in as an argument to ZygoteMain(). |
| 18 class NaClForkDelegate : public ZygoteForkDelegate { | 18 class NaClForkDelegate : public content::ZygoteForkDelegate { |
| 19 public: | 19 public: |
| 20 NaClForkDelegate(); | 20 NaClForkDelegate(); |
| 21 virtual ~NaClForkDelegate(); | 21 virtual ~NaClForkDelegate(); |
| 22 | 22 |
| 23 virtual void Init(bool sandboxed, | 23 virtual void Init(bool sandboxed, |
| 24 int browserdesc, | 24 int browserdesc, |
| 25 int sandboxdesc) OVERRIDE; | 25 int sandboxdesc) OVERRIDE; |
| 26 virtual void InitialUMA(std::string* uma_name, | 26 virtual void InitialUMA(std::string* uma_name, |
| 27 int* uma_sample, | 27 int* uma_sample, |
| 28 int* uma_boundary_value) OVERRIDE; | 28 int* uma_boundary_value) OVERRIDE; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 44 kNaClHelperAckFailed = 5, | 44 kNaClHelperAckFailed = 5, |
| 45 kNaClHelperSuccess = 6, | 45 kNaClHelperSuccess = 6, |
| 46 kNaClHelperStatusBoundary // Must be one greater than highest value used. | 46 kNaClHelperStatusBoundary // Must be one greater than highest value used. |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 NaClHelperStatus status_; | 49 NaClHelperStatus status_; |
| 50 bool sandboxed_; | 50 bool sandboxed_; |
| 51 int fd_; | 51 int fd_; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CHROME_COMMON_NACL_FORK_DELEGATE_LINUX_H_ | 54 #endif // CHROME_APP_NACL_FORK_DELEGATE_LINUX_H_ |
| OLD | NEW |