Index: ipc/ipc_channel_win.cc |
diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc |
index 0dcde1746d2237b84f857734da08f2415573f82e..eabf85e3e0fe0e2e0d68ec0bc5b563dad3b0e381 100644 |
--- a/ipc/ipc_channel_win.cc |
+++ b/ipc/ipc_channel_win.cc |
@@ -137,6 +137,16 @@ base::ProcessId ChannelWin::GetPeerPID() const { |
return peer_pid_; |
} |
+base::ProcessId ChannelWin::GetSelfPID() const { |
+ return GetCurrentProcessId(); |
+} |
+ |
+ChannelHandle ChannelWin::TakePipeHandle() { |
+ ChannelHandle handle = ChannelHandle(pipe_); |
+ pipe_ = INVALID_HANDLE_VALUE; |
+ return handle; |
+} |
+ |
// static |
bool ChannelWin::IsNamedServerInitialized( |
const std::string& channel_id) { |