Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: ipc/ipc_channel_win.cc

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« ipc/ipc_channel.h ('K') | « ipc/ipc_channel_win.h ('k') | ipc/ipc_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698