[Android WebView] Fix webview perf bot switchover to use org.chromium.webview_shell...
[chromium-blink-merge.git] / content / public / browser / child_process_data.h
blob14e0a84c239f1531c2eff3c7d2069796e4f97e05
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_
6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_
8 #include "base/process/process.h"
9 #include "base/strings/string16.h"
10 #include "content/common/content_export.h"
12 namespace content {
14 // Holds information about a child process.
15 struct ChildProcessData {
16 // The type of the process.
17 int process_type;
19 // The name of the process. i.e. for plugins it might be Flash, while for
20 // for workers it might be the domain that it's from.
21 base::string16 name;
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
25 // one run of the browser.
26 int id;
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
30 // current process.
31 base::ProcessHandle handle;
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;
37 explicit ChildProcessData(int process_type)
38 : process_type(process_type),
39 id(0),
40 handle(base::kNullProcessHandle),
41 exit_code(0) {}
44 } // namespace content
46 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_