Index: mojo/system/message_pipe_dispatcher.h |
diff --git a/mojo/system/message_pipe_dispatcher.h b/mojo/system/message_pipe_dispatcher.h |
index 1bfabc7e559f1263a2fd19b56fc0ba9b86e0f1a9..c0e6d2cfa41fced8c39e90134477e86294b70b5c 100644 |
--- a/mojo/system/message_pipe_dispatcher.h |
+++ b/mojo/system/message_pipe_dispatcher.h |
@@ -25,6 +25,15 @@ class MOJO_SYSTEM_IMPL_EXPORT MessagePipeDispatcher : public Dispatcher { |
// Must be called before any other methods. (This method is not thread-safe.) |
void Init(scoped_refptr<MessagePipe> message_pipe, unsigned port); |
+ // Gets a dumb pointer to |message_pipe_|. This must be called under the |
+ // |Dispatcher| lock. Note that it returns a dumb pointer. (This is okay, |
+ // since the lock is held, and you're being careful, right?) This is needed |
+ // when sending handles across processes, where nontrivial, invasive work |
+ // needs to be done. |
DaveMoore
2014/02/03 20:01:15
Could this functionality be expressed through a se
viettrungluu
2014/02/03 20:09:11
I considered that, but friends get access to every
|
+ MessagePipe* GetMessagePipeNoLock() const; |
+ // Similarly for the port. |
+ unsigned GetPortNoLock() const; |
+ |
virtual Type GetType() OVERRIDE; |
private: |