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

Side by Side 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, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_
6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ 6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_
7 7
8 #include "base/process/process.h" 8 #include "base/process/process.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 12 matching lines...) Expand all
23 // The unique identifier for this child process. This identifier is NOT a 23 // The unique identifier for this child process. This identifier is NOT a
24 // process ID, and will be unique for all types of child process for 24 // process ID, and will be unique for all types of child process for
25 // one run of the browser. 25 // one run of the browser.
26 int id; 26 int id;
27 27
28 // The handle to the process. May have value kNullProcessHandle if no process 28 // The handle to the process. May have value kNullProcessHandle if no process
29 // exists - either because it hasn't been started yet or it's running in the 29 // exists - either because it hasn't been started yet or it's running in the
30 // current process. 30 // current process.
31 base::ProcessHandle handle; 31 base::ProcessHandle handle;
32 32
33 // The exit code for the process. This is only valid for processes that have
34 // already exited e.g. when receiving a BrowserChildProcessCrashed callback.
35 int exit_code;
36
33 explicit ChildProcessData(int process_type) 37 explicit ChildProcessData(int process_type)
34 : process_type(process_type), id(0), handle(base::kNullProcessHandle) { 38 : process_type(process_type),
35 } 39 id(0),
40 handle(base::kNullProcessHandle),
41 exit_code(0) {}
36 }; 42 };
37 43
38 } // namespace content 44 } // namespace content
39 45
40 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ 46 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_
OLDNEW
« 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