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

Side by Side Diff: chrome/common/child_process_info.h

Issue 468005: Improve reporting of subprocess crashes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_COMMON_CHILD_PROCESS_INFO_H_ 5 #ifndef CHROME_COMMON_CHILD_PROCESS_INFO_H_
6 #define CHROME_COMMON_CHILD_PROCESS_INFO_H_ 6 #define CHROME_COMMON_CHILD_PROCESS_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/process.h" 10 #include "base/process.h"
11 11
12 // Holds information about a child process. 12 // Holds information about a child process.
13 class ChildProcessInfo { 13 class ChildProcessInfo {
14 public: 14 public:
15 // NOTE: Do not remove or reorder the elements in this enum, and only add new
16 // items at the end. We depend on these specific values in a histogram.
15 enum ProcessType { 17 enum ProcessType {
18 UNKNOWN_PROCESS = 1,
jar (doing other things) 2009/12/18 16:28:14 This change appears to re-number all entries in th
asargent_no_longer_on_chrome 2010/01/05 01:01:19 Their ordinal values were never used before as far
16 BROWSER_PROCESS, 19 BROWSER_PROCESS,
17 RENDER_PROCESS, 20 RENDER_PROCESS,
18 PLUGIN_PROCESS, 21 PLUGIN_PROCESS,
19 WORKER_PROCESS, 22 WORKER_PROCESS,
20 NACL_PROCESS, 23 NACL_PROCESS,
21 UTILITY_PROCESS, 24 UTILITY_PROCESS,
22 PROFILE_IMPORT_PROCESS, 25 PROFILE_IMPORT_PROCESS,
23 ZYGOTE_PROCESS, 26 ZYGOTE_PROCESS,
24 SANDBOX_HELPER_PROCESS, 27 SANDBOX_HELPER_PROCESS
25 UNKNOWN_PROCESS,
26 }; 28 };
27 29
28 ChildProcessInfo(const ChildProcessInfo& original); 30 ChildProcessInfo(const ChildProcessInfo& original);
29 virtual ~ChildProcessInfo(); 31 virtual ~ChildProcessInfo();
30 32
31 ChildProcessInfo& operator=(const ChildProcessInfo& original); 33 ChildProcessInfo& operator=(const ChildProcessInfo& original);
32 34
33 // Returns the type of the process. 35 // Returns the type of the process.
34 ProcessType type() const { return type_; } 36 ProcessType type() const { return type_; }
35 37
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 private: 96 private:
95 ProcessType type_; 97 ProcessType type_;
96 std::wstring name_; 98 std::wstring name_;
97 int id_; 99 int id_;
98 100
99 // The handle to the process. 101 // The handle to the process.
100 mutable base::Process process_; 102 mutable base::Process process_;
101 }; 103 };
102 104
103 #endif // CHROME_COMMON_CHILD_PROCESS_INFO_H_ 105 #endif // CHROME_COMMON_CHILD_PROCESS_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698