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

Unified Diff: mojo/system/message_pipe_dispatcher.cc

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 | « mojo/system/message_pipe_dispatcher.h ('k') | mojo/system/proxy_message_pipe_endpoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/message_pipe_dispatcher.cc
diff --git a/mojo/system/message_pipe_dispatcher.cc b/mojo/system/message_pipe_dispatcher.cc
index b282ed744ce0eb0b82f5d60e8405ab9484200a73..7474954f2a4247e4069dec1a1b424d167dc2d13d 100644
--- a/mojo/system/message_pipe_dispatcher.cc
+++ b/mojo/system/message_pipe_dispatcher.cc
@@ -27,6 +27,16 @@ void MessagePipeDispatcher::Init(scoped_refptr<MessagePipe> message_pipe,
port_ = port;
}
+MessagePipe* MessagePipeDispatcher::GetMessagePipeNoLock() const {
+ lock().AssertAcquired();
+ return message_pipe_.get();
+}
+
+unsigned MessagePipeDispatcher::GetPortNoLock() const {
+ lock().AssertAcquired();
+ return port_;
+}
+
Dispatcher::Type MessagePipeDispatcher::GetType() {
return kTypeMessagePipe;
}
« no previous file with comments | « mojo/system/message_pipe_dispatcher.h ('k') | mojo/system/proxy_message_pipe_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698