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
3 // found in the LICENSE file.
5 #include "content/public/common/process_type.h"
7 #include "base/logging.h"
11 std::string
GetProcessTypeNameInEnglish(ProcessType type
) {
13 case PROCESS_TYPE_BROWSER
:
15 case PROCESS_TYPE_RENDERER
:
17 case PROCESS_TYPE_PLUGIN
:
19 case PROCESS_TYPE_WORKER
:
21 case PROCESS_TYPE_UTILITY
:
23 case PROCESS_TYPE_PROFILE_IMPORT
:
24 return "Profile Import helper";
25 case PROCESS_TYPE_ZYGOTE
:
27 case PROCESS_TYPE_SANDBOX_HELPER
:
28 return "Sandbox helper";
29 case PROCESS_TYPE_NACL_LOADER
:
30 return "Native Client module";
31 case PROCESS_TYPE_NACL_BROKER
:
32 return "Native Client broker";
33 case PROCESS_TYPE_GPU
:
35 case PROCESS_TYPE_PPAPI_PLUGIN
:
36 return "Pepper Plugin";
37 case PROCESS_TYPE_PPAPI_BROKER
:
38 return "Pepper Plugin Broker";
39 case PROCESS_TYPE_UNKNOWN
:
41 DCHECK(false) << "Unknown child process type!";
46 } // namespace content