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

Unified Diff: components/nacl/renderer/plugin/service_runtime.h

Issue 1512733003: PNaCl: Use Chrome IPC to talk to the linker process, instead of SRPC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 4 years, 12 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 side-by-side diff with in-line comments
Download patch
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 c3a659c60cb1d996257a8f1e908ee3783597f7bc..cc966a4c5a5f3aa44be8be8227e8f904f669d966 100644
--- a/components/nacl/renderer/plugin/service_runtime.h
+++ b/components/nacl/renderer/plugin/service_runtime.h
@@ -12,7 +12,10 @@
#define COMPONENTS_NACL_RENDERER_PLUGIN_SERVICE_RUNTIME_H_
#include "base/macros.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"
@@ -70,6 +73,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);
@@ -84,6 +95,9 @@ class ServiceRuntime {
nacl::scoped_ptr<SelLdrLauncherChrome> subprocess_;
NaClHandle bootstrap_channel_;
+
+ scoped_ptr<IPC::SyncChannel> translator_channel_;
+ base::ProcessId process_id_;
};
} // namespace plugin
« no previous file with comments | « components/nacl/renderer/plugin/pnacl_translate_thread.cc ('k') | components/nacl/renderer/plugin/service_runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698