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

Unified Diff: mojo/system/proxy_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_endpoint.cc ('k') | mojo/system/proxy_message_pipe_endpoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/proxy_message_pipe_endpoint.h
diff --git a/mojo/system/proxy_message_pipe_endpoint.h b/mojo/system/proxy_message_pipe_endpoint.h
index 1d766c947b353c69b786c7acb2cdd880c0582d6f..72bc8f69ce92bd8ed5ad33775b1bd1727b3e96c1 100644
--- a/mojo/system/proxy_message_pipe_endpoint.h
+++ b/mojo/system/proxy_message_pipe_endpoint.h
@@ -19,6 +19,7 @@ namespace mojo {
namespace system {
class Channel;
+class ChannelEndpoint;
class LocalMessagePipeEndpoint;
class MessagePipe;
@@ -54,7 +55,8 @@ class MOJO_SYSTEM_IMPL_EXPORT ProxyMessagePipeEndpoint
virtual Type GetType() const OVERRIDE;
virtual bool OnPeerClose() OVERRIDE;
virtual void EnqueueMessage(scoped_ptr<MessageInTransit> message) OVERRIDE;
- virtual void Attach(scoped_refptr<Channel> channel,
+ virtual void Attach(ChannelEndpoint* channel_endpoint,
+ Channel* channel,
MessageInTransit::EndpointId local_id) OVERRIDE;
virtual bool Run(MessageInTransit::EndpointId remote_id) OVERRIDE;
virtual void OnRemove() OVERRIDE;
@@ -75,6 +77,10 @@ class MOJO_SYSTEM_IMPL_EXPORT ProxyMessagePipeEndpoint
}
// This should only be set if we're attached.
+ scoped_refptr<ChannelEndpoint> channel_endpoint_;
+
+ // TODO(vtl): Remove this, local_id_, and remote_id_.
+ // This should only be set if we're attached.
scoped_refptr<Channel> channel_;
// |local_id_| should be set to something other than
« no previous file with comments | « mojo/system/message_pipe_endpoint.cc ('k') | mojo/system/proxy_message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698