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

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

Issue 8356042: Switch ChildProcess.* enum histograms from COUNTS to ENUMERATION. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/browser_child_process_host.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_CHILD_PROCESS_INFO_H_ 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_INFO_H_
6 #define CONTENT_COMMON_CHILD_PROCESS_INFO_H_ 6 #define CONTENT_COMMON_CHILD_PROCESS_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/process.h" 11 #include "base/process.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 14
15 // Holds information about a child process. 15 // Holds information about a child process.
16 class CONTENT_EXPORT ChildProcessInfo { 16 class CONTENT_EXPORT ChildProcessInfo {
17 public: 17 public:
18 // NOTE: Do not remove or reorder the elements in this enum, and only add new 18 // NOTE: Do not remove or reorder the elements in this enum, and only add new
19 // items at the end. We depend on these specific values in a histogram. 19 // items at the end, right before MAX_PROCESS. We depend on these specific
20 // values in histograms.
20 enum ProcessType { 21 enum ProcessType {
21 UNKNOWN_PROCESS = 1, 22 UNKNOWN_PROCESS = 1,
22 BROWSER_PROCESS, 23 BROWSER_PROCESS,
23 RENDER_PROCESS, 24 RENDER_PROCESS,
24 PLUGIN_PROCESS, 25 PLUGIN_PROCESS,
25 WORKER_PROCESS, 26 WORKER_PROCESS,
26 NACL_LOADER_PROCESS, 27 NACL_LOADER_PROCESS,
27 UTILITY_PROCESS, 28 UTILITY_PROCESS,
28 PROFILE_IMPORT_PROCESS, 29 PROFILE_IMPORT_PROCESS,
29 ZYGOTE_PROCESS, 30 ZYGOTE_PROCESS,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 RendererProcessType renderer_type_; 132 RendererProcessType renderer_type_;
132 string16 name_; 133 string16 name_;
133 string16 version_; 134 string16 version_;
134 int id_; 135 int id_;
135 136
136 // The handle to the process. 137 // The handle to the process.
137 mutable base::Process process_; 138 mutable base::Process process_;
138 }; 139 };
139 140
140 #endif // CONTENT_COMMON_CHILD_PROCESS_INFO_H_ 141 #endif // CONTENT_COMMON_CHILD_PROCESS_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698