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

Unified Diff: mojo/system/message_pipe_endpoint.h

Issue 577313002: Mojo: Give ChannelEndpoint the remote ID and ProxyMessagePipeEndpoint the 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/message_pipe.cc ('k') | mojo/system/message_pipe_endpoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/message_pipe_endpoint.h
diff --git a/mojo/system/message_pipe_endpoint.h b/mojo/system/message_pipe_endpoint.h
index 4eb84acd8cdb9b22f0155ed1df7e5f57d255f493..a6bf6f9c27f08fb08e1ad5bb6a93cfbe223e1b53 100644
--- a/mojo/system/message_pipe_endpoint.h
+++ b/mojo/system/message_pipe_endpoint.h
@@ -23,6 +23,7 @@ namespace mojo {
namespace system {
class Channel;
+class ChannelEndpoint;
class Waiter;
// This is an interface to one of the ends of a message pipe, and is used by
@@ -74,7 +75,8 @@ class MOJO_SYSTEM_IMPL_EXPORT MessagePipeEndpoint {
// Implementations must override these if they represent a proxy endpoint. An
// implementation for a local endpoint needs not override these methods, since
// they should never be called.
- virtual void Attach(scoped_refptr<Channel> channel,
+ virtual void Attach(ChannelEndpoint* channel_endpoint,
+ Channel* channel,
MessageInTransit::EndpointId local_id);
// Returns false if the endpoint should be closed and destroyed, else true.
virtual bool Run(MessageInTransit::EndpointId remote_id);
« no previous file with comments | « mojo/system/message_pipe.cc ('k') | mojo/system/message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698