#ifndef MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
#define MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
-#include <utility>
-
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "mojo/system/dispatcher.h"
namespace mojo {
namespace system {
+class ChannelEndpoint;
class MessagePipe;
class MessagePipeDispatcherTransport;
// the message pipe, port 0).
// TODO(vtl): This currently uses |kDefaultCreateOptions|, which is okay since
// there aren't any options, but eventually options should be plumbed through.
- static std::pair<scoped_refptr<MessagePipeDispatcher>,
- scoped_refptr<MessagePipe> >
- CreateRemoteMessagePipe();
+ static scoped_refptr<MessagePipeDispatcher> CreateRemoteMessagePipe(
+ scoped_refptr<ChannelEndpoint>* channel_endpoint);
// The "opposite" of |SerializeAndClose()|. (Typically this is called by
// |Dispatcher::Deserialize()|.)