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

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: toned down comment 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
« no previous file with comments | « no previous file | mojo/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | mojo/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698