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

Unified Diff: mojo/system/channel_endpoint.h

Issue 580123004: Mojo: Remove knowledge of Channel, etc. from ProxyMessagePipeEndpoint. (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 1cfc7c6fa0c215a17ed26d53f6004d30d68ac21b..5dd34d4aa4009bd4a2a13592bc92840a5e703683 100644
--- a/mojo/system/channel_endpoint.h
+++ b/mojo/system/channel_endpoint.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
#include "mojo/system/message_in_transit.h"
#include "mojo/system/system_impl_export.h"
@@ -116,7 +117,21 @@ class MOJO_SYSTEM_IMPL_EXPORT ChannelEndpoint
// |Channel|.)
ChannelEndpoint(MessagePipe* message_pipe, unsigned port);
+ // Methods called by |MessagePipe| (via |ProxyMessagePipeEndpoint|):
+
+ // TODO(vtl): This currently only works if we're "running". We'll move the
+ // "paused message queue" here (will this be needed when we have
+ // locally-allocated remote IDs?).
+ bool EnqueueMessage(scoped_ptr<MessageInTransit> message);
+
+ void DetachFromMessagePipe();
+
+ // Methods called by |Channel|:
+
+ // Called by |Channel| when it takes a reference to this object.
void AttachToChannel(Channel* channel, MessageInTransit::EndpointId local_id);
+
+ // TODO(vtl): Combine this with |AttachToChannel()|.
void Run(MessageInTransit::EndpointId remote_id);
// Called by |Channel| before it gives up its reference to this object.
« 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