Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / ipc / ipc_channel.h
index bca3ea0..fbd4ae0 100644 (file)
@@ -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.
+  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