Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / public / common / child_process_host_delegate.h
index 89cb70a..06d3093 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <string>
 
+#include "base/process/process.h"
 #include "content/common/content_export.h"
 #include "ipc/ipc_listener.h"
 
@@ -26,6 +27,10 @@ class ChildProcessHostDelegate : public IPC::Listener {
   // Called when the child process unexpected closes the IPC channel. Delegates
   // would normally delete the object in this case.
   virtual void OnChildDisconnected() {}
+
+  // Returns the handle of the child process. This can be called only after
+  // OnProcessLaunched is called or it will be invalid and may crash.
+  virtual base::ProcessHandle GetHandle() const = 0;
 };
 
 };  // namespace content