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

Unified Diff: chrome/nacl/nacl_ipc_manager.h

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.h
===================================================================
--- chrome/nacl/nacl_ipc_manager.h (revision 135227)
+++ chrome/nacl/nacl_ipc_manager.h (working copy)
@@ -10,6 +10,7 @@
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
+#include "base/threading/thread.h"
dmichael (off chromium) 2012/05/07 20:30:19 Should you instead be adding base/message_loop_pro
bbudge 2012/05/07 21:39:18 Done.
#include "ipc/ipc_channel_handle.h"
class NaClIPCAdapter;
@@ -25,6 +26,8 @@
NaClIPCManager();
~NaClIPCManager();
+ void Init(scoped_refptr<base::MessageLoopProxy> message_loop_proxy);
+
// Creates a nacl channel associated with the given channel handle (normally
// this will come from the browser process). Returns the handle that should
// be given to nacl to associated with this IPC channel.
@@ -46,6 +49,8 @@
// failures.
scoped_refptr<NaClIPCAdapter> GetAdapter(void* handle);
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
+
// Lock around all data below.
base::Lock lock_;

Powered by Google App Engine
This is Rietveld 408576698