Chromium Code Reviews| Index: ipc/ipc_channel_proxy.h |
| diff --git a/ipc/ipc_channel_proxy.h b/ipc/ipc_channel_proxy.h |
| index 6ff5cc2a9e09bec2cd962ecff746dafaaf3c56a9..0bc8b2cb78f2986b31cb721ab7e404647f57cd83 100644 |
| --- a/ipc/ipc_channel_proxy.h |
| +++ b/ipc/ipc_channel_proxy.h |
| @@ -13,6 +13,7 @@ |
| #include "base/threading/non_thread_safe.h" |
| #include "ipc/ipc_channel.h" |
| #include "ipc/ipc_channel_handle.h" |
| +#include "ipc/ipc_endpoint.h" |
| #include "ipc/ipc_listener.h" |
| #include "ipc/ipc_sender.h" |
| @@ -63,7 +64,7 @@ class SendCallbackHelper; |
| // |channel_lifetime_lock_| is used to protect it. The locking overhead is only |
| // paid if the underlying channel supports thread-safe |Send|. |
| // |
| -class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe { |
| +class IPC_EXPORT ChannelProxy : public Endpoint, public base::NonThreadSafe { |
| public: |
| #if defined(ENABLE_IPC_FUZZER) |
| // Interface for a filter to be imposed on outgoing messages which can |
| @@ -147,9 +148,9 @@ class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe { |
| // Called to clear the pointer to the IPC task runner when it's going away. |
| void ClearIPCTaskRunner(); |
| - // Get the process ID for the connected peer. |
| - // Returns base::kNullProcessId if the peer is not connected yet. |
| - base::ProcessId GetPeerPID() const { return context_->peer_pid_; } |
| + // ProtoChannel overrides. |
|
Tom Sepez
2015/08/07 22:19:56
nit: ProtoChannel
erikchen
2015/08/07 22:40:34
Done.
|
| + base::ProcessId GetPeerPID() const override; |
| + void OnSetAttachmentBrokerEndpoint() override; |
| #if defined(OS_POSIX) && !defined(OS_NACL_SFI) |
| // Calls through to the underlying channel's methods. |
| @@ -157,8 +158,6 @@ class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe { |
| base::ScopedFD TakeClientFileDescriptor(); |
| #endif |
| - void SetAttachmentBrokerEndpoint(bool is_endpoint); |
| - |
| protected: |
| class Context; |
| // A subclass uses this constructor if it needs to add more information |