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

Unified Diff: mojo/system/channel_endpoint.h

Issue 584723002: Mojo: Add Channel::AttachEndpoint(), which takes a ChannelEndpoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/channel.cc ('k') | mojo/system/channel_endpoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/channel_endpoint.h
diff --git a/mojo/system/channel_endpoint.h b/mojo/system/channel_endpoint.h
index 5dd34d4aa4009bd4a2a13592bc92840a5e703683..593ab5597f11bb8d00d9a13446b29d8150ca33ac 100644
--- a/mojo/system/channel_endpoint.h
+++ b/mojo/system/channel_endpoint.h
@@ -156,6 +156,10 @@ class MOJO_SYSTEM_IMPL_EXPORT ChannelEndpoint
friend class base::RefCountedThreadSafe<ChannelEndpoint>;
~ChannelEndpoint();
+ // Must be called with |lock_| held.
+ bool WriteMessageNoLock(scoped_ptr<MessageInTransit> message);
+
+ // TODO(vtl): Move these under lock.
State state_;
// TODO(vtl): When moved under lock, this can/should be made a raw pointer.
scoped_refptr<MessagePipe> message_pipe_;
« no previous file with comments | « mojo/system/channel.cc ('k') | mojo/system/channel_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698