| Index: components/nacl/renderer/plugin/service_runtime.h
|
| diff --git a/components/nacl/renderer/plugin/service_runtime.h b/components/nacl/renderer/plugin/service_runtime.h
|
| index 5d1bda675ff6150598dd72c6b2c0cbbd92e50ed2..af88db519eeed57ceda4c00e8e2c4bd1e3d1b3ab 100644
|
| --- a/components/nacl/renderer/plugin/service_runtime.h
|
| +++ b/components/nacl/renderer/plugin/service_runtime.h
|
| @@ -11,7 +11,10 @@
|
| #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_SERVICE_RUNTIME_H_
|
| #define COMPONENTS_NACL_RENDERER_PLUGIN_SERVICE_RUNTIME_H_
|
|
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/process/process_handle.h"
|
| #include "components/nacl/renderer/plugin/utility.h"
|
| +#include "ipc/ipc_sync_channel.h"
|
| #include "native_client/src/include/nacl_macros.h"
|
| #include "native_client/src/include/nacl_scoped_ptr.h"
|
| #include "native_client/src/public/imc_types.h"
|
| @@ -69,6 +72,14 @@ class ServiceRuntime {
|
|
|
| bool main_service_runtime() const { return main_service_runtime_; }
|
|
|
| + scoped_ptr<IPC::SyncChannel> TakeTranslatorChannel() {
|
| + return scoped_ptr<IPC::SyncChannel>(translator_channel_.release());
|
| + }
|
| +
|
| + // Returns the PID of the subprocess. This PID is needed for copying
|
| + // handles to the subprocess on Windows.
|
| + base::ProcessId get_process_id() { return process_id_; }
|
| +
|
| private:
|
| NACL_DISALLOW_COPY_AND_ASSIGN(ServiceRuntime);
|
|
|
| @@ -83,6 +94,9 @@ class ServiceRuntime {
|
| nacl::scoped_ptr<SelLdrLauncherChrome> subprocess_;
|
|
|
| NaClHandle bootstrap_channel_;
|
| +
|
| + scoped_ptr<IPC::SyncChannel> translator_channel_;
|
| + base::ProcessId process_id_;
|
| };
|
|
|
| } // namespace plugin
|
|
|