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

Unified Diff: chrome/nacl/nacl_ipc_manager.cc

Issue 10214007: Add an IPC channel between the NaCl loader process and the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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: chrome/nacl/nacl_ipc_manager.cc
===================================================================
--- chrome/nacl/nacl_ipc_manager.cc (revision 135227)
+++ chrome/nacl/nacl_ipc_manager.cc (working copy)
@@ -13,10 +13,14 @@
NaClIPCManager::~NaClIPCManager() {
}
+void NaClIPCManager::Init(
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy) {
+ message_loop_proxy_ = message_loop_proxy;
+}
+
void* NaClIPCManager::CreateChannel(const IPC::ChannelHandle& handle) {
scoped_refptr<NaClIPCAdapter> adapter(
- new NaClIPCAdapter(handle,
- ChildProcess::current()->io_message_loop_proxy()));
+ new NaClIPCAdapter(handle, message_loop_proxy_.get()));
// Use the object's address as the handle given to nacl. We just need a
// unique void* to give to nacl for us to look it up when we get calls on

Powered by Google App Engine
This is Rietveld 408576698