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

Side by Side Diff: content/public/common/process_type.h

Issue 8757014: Move GetProcessTypeNameInEnglish beside the ProcessType enum where it belongs. This also helps re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « content/content_common.gypi ('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) 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 CONTENT_PUBLIC_COMMON_PROCESS_TYPE_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_PROCESS_TYPE_H_
6 #define CONTENT_PUBLIC_COMMON_PROCESS_TYPE_H_ 6 #define CONTENT_PUBLIC_COMMON_PROCESS_TYPE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10
9 namespace content { 11 namespace content {
10 12
11 // Defines the different process types. 13 // Defines the different process types.
12 // NOTE: Do not remove or reorder the elements in this enum, and only add new 14 // NOTE: Do not remove or reorder the elements in this enum, and only add new
13 // items at the end, right before MAX_PROCESS. We depend on these specific 15 // items at the end, right before MAX_PROCESS. We depend on these specific
14 // values in histograms. 16 // values in histograms.
15 enum ProcessType { 17 enum ProcessType {
16 PROCESS_TYPE_UNKNOWN = 1, 18 PROCESS_TYPE_UNKNOWN = 1,
17 PROCESS_TYPE_BROWSER, 19 PROCESS_TYPE_BROWSER,
18 PROCESS_TYPE_RENDERER, 20 PROCESS_TYPE_RENDERER,
19 PROCESS_TYPE_PLUGIN, 21 PROCESS_TYPE_PLUGIN,
20 PROCESS_TYPE_WORKER, 22 PROCESS_TYPE_WORKER,
21 PROCESS_TYPE_NACL_LOADER, 23 PROCESS_TYPE_NACL_LOADER,
22 PROCESS_TYPE_UTILITY, 24 PROCESS_TYPE_UTILITY,
23 PROCESS_TYPE_PROFILE_IMPORT, 25 PROCESS_TYPE_PROFILE_IMPORT,
24 PROCESS_TYPE_ZYGOTE, 26 PROCESS_TYPE_ZYGOTE,
25 PROCESS_TYPE_SANDBOX_HELPER, 27 PROCESS_TYPE_SANDBOX_HELPER,
26 PROCESS_TYPE_NACL_BROKER, 28 PROCESS_TYPE_NACL_BROKER,
27 PROCESS_TYPE_GPU, 29 PROCESS_TYPE_GPU,
28 PROCESS_TYPE_PPAPI_PLUGIN, 30 PROCESS_TYPE_PPAPI_PLUGIN,
29 PROCESS_TYPE_PPAPI_BROKER, 31 PROCESS_TYPE_PPAPI_BROKER,
30 PROCESS_TYPE_MAX 32 PROCESS_TYPE_MAX
31 }; 33 };
32 34
35 // Returns an English name of the process type, should only be used for non
36 // user-visible strings, or debugging pages like about:memory.
37 std::string GetProcessTypeNameInEnglish(ProcessType type);
38
33 } // namespace content 39 } // namespace content
34 40
35 #endif // CONTENT_PUBLIC_COMMON_PROCESS_TYPE_H_ 41 #endif // CONTENT_PUBLIC_COMMON_PROCESS_TYPE_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698