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

Unified Diff: ipc/ipc_channel.h

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
« no previous file with comments | « ipc/ipc.gypi ('k') | ipc/ipc_channel_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel.h
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h
index bca3ea066c35f3477b37886fe16adf9e4ac5efbe..fbd4ae0aa0ac96d1b34e859a98cbf9dea576105b 100644
--- a/ipc/ipc_channel.h
+++ b/ipc/ipc_channel.h
@@ -170,6 +170,14 @@ class IPC_EXPORT Channel : public Sender {
// listener.
virtual base::ProcessId GetPeerPID() const = 0;
+ // Get its own process id. This value is told to the peer.
Tom Sepez 2014/08/07 18:36:22 Can you elaborate on "this value is told to the pe
Hajime Morrita 2014/08/07 19:58:21 Yes it can, as it can do that for current IPC impl
+ virtual base::ProcessId GetSelfPID() const = 0;
+
+ // Return connected ChannelHandle which the channel has owned.
+ // This method transfers the ownership to the caller
+ // so the channel isn't valid after the call.
+ virtual ChannelHandle TakePipeHandle() WARN_UNUSED_RESULT = 0;
+
// 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 | « ipc/ipc.gypi ('k') | ipc/ipc_channel_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698