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

Unified Diff: content/public/browser/child_process_data.h

Issue 1067733006: Add extra parameter to BrowserChildProcessCrashed to pass the exit_code at time of crash/termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review comments Created 5 years, 8 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 | « content/public/browser/browser_child_process_observer.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/public/browser/browser_child_process_observer.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698