Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / mojo / system / message_pipe_endpoint.h
index 4eb84ac..781a616 100644 (file)
@@ -22,7 +22,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,11 +74,7 @@ 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,
-                      MessageInTransit::EndpointId local_id);
-  // Returns false if the endpoint should be closed and destroyed, else true.
-  virtual bool Run(MessageInTransit::EndpointId remote_id);
-  virtual void OnRemove();
+  virtual void Attach(ChannelEndpoint* channel_endpoint);
 
  protected:
   MessagePipeEndpoint() {}