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..e4c6d3def7beb851b9c28610c5cdcf3231bdc36e 100644 |
--- a/mojo/system/message_pipe_dispatcher.h |
+++ b/mojo/system/message_pipe_dispatcher.h |
@@ -25,6 +25,14 @@ 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 (that it's a dumb pointer is okay since it's under lock). |
+ // This is needed when sending handles across processes, where nontrivial, |
+ // invasive work needs to be done. |
+ MessagePipe* GetMessagePipeNoLock() const; |
+ // Similarly for the port. |
+ unsigned GetPortNoLock() const; |
+ |
virtual Type GetType() OVERRIDE; |
private: |