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

Unified Diff: components/nacl/renderer/plugin/pnacl_translate_thread.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
« no previous file with comments | « components/nacl/renderer/plugin/BUILD.gn ('k') | components/nacl/renderer/plugin/pnacl_translate_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/plugin/pnacl_translate_thread.h
diff --git a/components/nacl/renderer/plugin/pnacl_translate_thread.h b/components/nacl/renderer/plugin/pnacl_translate_thread.h
index 7db7e7d02832e3e22aa3ffc2624e53880428faa3..cbb0ed0e4c9803b188759f277e8f03af75cb0851 100644
--- a/components/nacl/renderer/plugin/pnacl_translate_thread.h
+++ b/components/nacl/renderer/plugin/pnacl_translate_thread.h
@@ -17,6 +17,7 @@
#include "native_client/src/shared/platform/nacl_sync_checked.h"
#include "native_client/src/shared/platform/nacl_threads.h"
#include "ppapi/cpp/completion_callback.h"
+#include "ppapi/proxy/serialized_handle.h"
struct PP_PNaClOptions;
@@ -84,6 +85,9 @@ class PnaclTranslateThread {
bool started() const { return coordinator_ != NULL; }
private:
+ ppapi::proxy::SerializedHandle GetHandleForSubprocess(TempFile* file,
+ int32_t open_flags);
+
// Helper thread entry point for compilation. Takes a pointer to
// PnaclTranslateThread and calls DoCompile().
static void WINAPI DoCompileThread(void* arg);
@@ -149,6 +153,15 @@ class PnaclTranslateThread {
PP_PNaClOptions* pnacl_options_;
std::string architecture_attributes_;
PnaclCoordinator* coordinator_;
+
+ // This IPC::SyncChannel can only be used and freed by the parent thread.
+ scoped_ptr<IPC::SyncChannel> ld_channel_;
+ // This IPC::SyncMessageFilter can be used by the child thread.
+ scoped_refptr<IPC::SyncMessageFilter> ld_channel_filter_;
+ // PID of the subprocess, needed for copying handles to the subprocess on
+ // Windows. This is used by the child thread.
+ base::ProcessId ld_channel_peer_pid_;
+
private:
NACL_DISALLOW_COPY_AND_ASSIGN(PnaclTranslateThread);
};
« no previous file with comments | « components/nacl/renderer/plugin/BUILD.gn ('k') | components/nacl/renderer/plugin/pnacl_translate_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698