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

Unified Diff: ipc/ipc_channel_win.h

Issue 9968111: Make IPC channels track their peer process ID (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_win.h
===================================================================
--- ipc/ipc_channel_win.h (revision 130443)
+++ ipc/ipc_channel_win.h (working copy)
@@ -33,6 +33,7 @@
void Close();
bool Send(Message* message);
static bool IsNamedServerInitialized(const std::string& channel_id);
+ base::ProcessId peer_pid() const { return peer_pid_; }
private:
// ChannelReader implementation.
@@ -67,6 +68,8 @@
HANDLE pipe_;
+ base::ProcessId peer_pid_;
+
// Messages to be sent are queued here.
std::queue<Message*> output_queue_;
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698