Index: ipc/ipc_channel_posix.cc |
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc |
index 8ddf73a2442349eb2f2576b9922e7a4b91616ea1..c40f765ca9b99dfc8210711c0910c6f92594d1d1 100644 |
--- a/ipc/ipc_channel_posix.cc |
+++ b/ipc/ipc_channel_posix.cc |
@@ -747,7 +747,7 @@ void ChannelPosix::ClosePipeOnError() { |
} |
} |
-int ChannelPosix::GetHelloMessageProcId() { |
+int ChannelPosix::GetHelloMessageProcId() const { |
int pid = base::GetCurrentProcId(); |
#if defined(OS_LINUX) |
// Our process may be in a sandbox with a separate PID namespace. |
@@ -1050,6 +1050,14 @@ base::ProcessId ChannelPosix::GetPeerPID() const { |
return peer_pid_; |
} |
+base::ProcessId ChannelPosix::GetSelfPID() const { |
+ return GetHelloMessageProcId(); |
+} |
+ |
+ChannelHandle ChannelPosix::GetPipeHandle() const { |
+ return ChannelHandle(pipe_name_, base::FileDescriptor(pipe_, false)); |
+} |
+ |
//------------------------------------------------------------------------------ |
// Channel's methods |