| Index: mojo/edk/system/endpoint_relayer.h
|
| diff --git a/mojo/edk/system/endpoint_relayer.h b/mojo/edk/system/endpoint_relayer.h
|
| index 5a61aa1549efa4d98f47f5b3a8efd9750fbd44be..f41de9680cd10739429eabebd04661539ca64de7 100644
|
| --- a/mojo/edk/system/endpoint_relayer.h
|
| +++ b/mojo/edk/system/endpoint_relayer.h
|
| @@ -7,7 +7,6 @@
|
|
|
| #include <memory>
|
|
|
| -#include "base/memory/ref_counted.h"
|
| #include "mojo/edk/system/channel_endpoint_client.h"
|
| #include "mojo/edk/system/mutex.h"
|
| #include "mojo/edk/system/ref_ptr.h"
|
| @@ -62,7 +61,7 @@ class EndpointRelayer final : public ChannelEndpointClient {
|
| MOJO_DISALLOW_COPY_AND_ASSIGN(Filter);
|
| };
|
|
|
| - EndpointRelayer();
|
| + // Note: Use |MakeRefCounted<EndpointRelayer>()|.
|
|
|
| // Gets the other port number (i.e., 0 -> 1, 1 -> 0).
|
| static unsigned GetPeerPort(unsigned port);
|
| @@ -80,6 +79,9 @@ class EndpointRelayer final : public ChannelEndpointClient {
|
| void OnDetachFromChannel(unsigned port) override;
|
|
|
| private:
|
| + FRIEND_MAKE_REF_COUNTED(EndpointRelayer);
|
| +
|
| + EndpointRelayer();
|
| ~EndpointRelayer() override;
|
|
|
| Mutex mutex_;
|
|
|