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

Unified Diff: mojo/system/message_pipe_dispatcher.h

Issue 145483005: Mojo: More work towards sending message pipe handles over remote message pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: 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:

Powered by Google App Engine
This is Rietveld 408576698