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

Unified Diff: ipc/ipc_channel_win.cc

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed ChanelBuilder to ChannelFactory Created 6 years, 5 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 9741dda05a13750f486d21f792f0c4aa6b3b7f65..0c691eb03d0cbf3f1c13549ea2b901ab3c1ff79f 100644
--- a/ipc/ipc_channel_win.cc
+++ b/ipc/ipc_channel_win.cc
@@ -136,6 +136,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) {

Powered by Google App Engine
This is Rietveld 408576698