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

Unified Diff: ipc/ipc_channel.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 | « no previous file | ipc/ipc_channel_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel.h
===================================================================
--- ipc/ipc_channel.h (revision 130443)
+++ ipc/ipc_channel.h (working copy)
@@ -9,6 +9,7 @@
#include <string>
#include "base/compiler_specific.h"
+#include "base/process.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message.h"
@@ -149,6 +150,10 @@
// Modify the Channel's listener.
void set_listener(Listener* listener);
+ // Get the process ID for the connected peer.
+ // Returns base::kNullProcessId if the peer is not connected yet.
+ base::ProcessId peer_pid() const;
+
// Send a message over the Channel to the listener on the other end.
//
// |message| must be allocated using operator new. This object will be
« no previous file with comments | « no previous file | ipc/ipc_channel_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698