Index: content/public/browser/child_process_data.h |
diff --git a/content/public/browser/child_process_data.h b/content/public/browser/child_process_data.h |
index 395c4876b8d736e4de46b11a71970bac95a2e818..14e0a84c239f1531c2eff3c7d2069796e4f97e05 100644 |
--- a/content/public/browser/child_process_data.h |
+++ b/content/public/browser/child_process_data.h |
@@ -30,9 +30,15 @@ struct ChildProcessData { |
// current process. |
base::ProcessHandle handle; |
+ // The exit code for the process. This is only valid for processes that have |
+ // already exited e.g. when receiving a BrowserChildProcessCrashed callback. |
+ int exit_code; |
+ |
explicit ChildProcessData(int process_type) |
- : process_type(process_type), id(0), handle(base::kNullProcessHandle) { |
- } |
+ : process_type(process_type), |
+ id(0), |
+ handle(base::kNullProcessHandle), |
+ exit_code(0) {} |
}; |
} // namespace content |