Chromium Code Reviews| Index: ipc/ipc_channel_posix.h |
| diff --git a/ipc/ipc_channel_posix.h b/ipc/ipc_channel_posix.h |
| index ae2de72f7fe3fa582a90ff379efb4b043b68f1ad..c636d2c5e6bd63843f923473dcef8b42aba48d56 100644 |
| --- a/ipc/ipc_channel_posix.h |
| +++ b/ipc/ipc_channel_posix.h |
| @@ -53,9 +53,9 @@ class ChannelPosix : public Channel, |
| public internal::ChannelReader, |
| public base::MessageLoopForIO::Watcher { |
| public: |
| - // Mirror methods of Channel, see ipc_channel.h for description. |
| ChannelPosix(const IPC::ChannelHandle& channel_handle, Mode mode, |
| Listener* listener); |
| + |
|
jam
2014/06/06 14:47:13
nit: no blank line needed
|
| virtual ~ChannelPosix(); |
| // Channel implementation |
| @@ -65,10 +65,21 @@ class ChannelPosix : public Channel, |
| virtual base::ProcessId GetPeerPID() const OVERRIDE; |
| virtual int GetClientFileDescriptor() const OVERRIDE; |
| virtual int TakeClientFileDescriptor() OVERRIDE; |
| - virtual bool AcceptsConnections() const OVERRIDE; |
| - virtual bool HasAcceptedConnection() const OVERRIDE; |
| - virtual bool GetPeerEuid(uid_t* peer_euid) const OVERRIDE; |
| - virtual void ResetToAcceptingConnectionState() OVERRIDE; |
| + |
| + // Returns true if the channel supports listening for connections. |
| + bool AcceptsConnections() const; |
| + |
| + // Returns true if the channel supports listening for connections and is |
| + // currently connected. |
| + bool HasAcceptedConnection() const; |
| + |
| + // Closes any currently connected socket, and returns to a listening state |
| + // for more connections. |
| + void ResetToAcceptingConnectionState(); |
| + |
| + // Returns true if the peer process' effective user id can be determined, in |
| + // which case the supplied peer_euid is updated with it. |
| + bool GetPeerEuid(uid_t* peer_euid) const; |
| void CloseClientFileDescriptor(); |