Index: content/public/common/child_process_host_delegate.h |
diff --git a/content/public/common/child_process_host_delegate.h b/content/public/common/child_process_host_delegate.h |
index 89cb70afcec39fb4b76cdaf2de85b987b699ca15..06d30937cb643900685e83dfe4bd799eddce4285 100644 |
--- a/content/public/common/child_process_host_delegate.h |
+++ b/content/public/common/child_process_host_delegate.h |
@@ -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 |