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

Side by Side Diff: content/common/process_type.cc

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
« no previous file with comments | « content/common/plugin_process_messages.h ('k') | content/common/sandbox_init_mac.cc » ('j') | 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 #include "content/public/common/process_type.h" 5 #include "content/public/common/process_type.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/public/common/content_client.h" 8 #include "content/public/common/content_client.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 std::string GetProcessTypeNameInEnglish(int type) { 12 std::string GetProcessTypeNameInEnglish(int type) {
13 switch (type) { 13 switch (type) {
14 case PROCESS_TYPE_BROWSER: 14 case PROCESS_TYPE_BROWSER:
15 return "Browser"; 15 return "Browser";
16 case PROCESS_TYPE_RENDERER: 16 case PROCESS_TYPE_RENDERER:
17 return "Tab"; 17 return "Tab";
18 case PROCESS_TYPE_PLUGIN:
19 return "Plugin";
20 case PROCESS_TYPE_UTILITY: 18 case PROCESS_TYPE_UTILITY:
21 return "Utility"; 19 return "Utility";
22 case PROCESS_TYPE_ZYGOTE: 20 case PROCESS_TYPE_ZYGOTE:
23 return "Zygote"; 21 return "Zygote";
24 case PROCESS_TYPE_SANDBOX_HELPER: 22 case PROCESS_TYPE_SANDBOX_HELPER:
25 return "Sandbox helper"; 23 return "Sandbox helper";
26 case PROCESS_TYPE_GPU: 24 case PROCESS_TYPE_GPU:
27 return "GPU"; 25 return "GPU";
28 case PROCESS_TYPE_PPAPI_PLUGIN: 26 case PROCESS_TYPE_PPAPI_PLUGIN:
29 return "Pepper Plugin"; 27 return "Pepper Plugin";
30 case PROCESS_TYPE_PPAPI_BROKER: 28 case PROCESS_TYPE_PPAPI_BROKER:
31 return "Pepper Plugin Broker"; 29 return "Pepper Plugin Broker";
32 case PROCESS_TYPE_UNKNOWN: 30 case PROCESS_TYPE_UNKNOWN:
33 DCHECK(false) << "Unknown child process type!"; 31 DCHECK(false) << "Unknown child process type!";
34 return "Unknown"; 32 return "Unknown";
35 } 33 }
36 34
37 return content::GetContentClient()->GetProcessTypeNameInEnglish(type); 35 return content::GetContentClient()->GetProcessTypeNameInEnglish(type);
38 } 36 }
39 37
40 } // namespace content 38 } // namespace content
OLDNEW
« no previous file with comments | « content/common/plugin_process_messages.h ('k') | content/common/sandbox_init_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698