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

Unified Diff: content/common/child_process_info.cc

Issue 8760011: Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/child_process_info.h ('k') | content/common/debug_flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_info.cc
===================================================================
--- content/common/child_process_info.cc (revision 112315)
+++ content/common/child_process_info.cc (working copy)
@@ -14,7 +14,7 @@
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
-ChildProcessInfo::ChildProcessInfo(ProcessType type, int id) :
+ChildProcessInfo::ChildProcessInfo(content::ProcessType type, int id) :
type_(type) {
if (id == -1)
id_ = GenerateChildProcessUniqueId();
@@ -47,35 +47,35 @@
// static
std::string ChildProcessInfo::GetTypeNameInEnglish(
- ChildProcessInfo::ProcessType type) {
+ content::ProcessType type) {
switch (type) {
- case BROWSER_PROCESS:
+ case content::PROCESS_TYPE_BROWSER:
return "Browser";
- case RENDER_PROCESS:
+ case content::PROCESS_TYPE_RENDERER:
return "Tab";
- case PLUGIN_PROCESS:
+ case content::PROCESS_TYPE_PLUGIN:
return "Plug-in";
- case WORKER_PROCESS:
+ case content::PROCESS_TYPE_WORKER:
return "Web Worker";
- case UTILITY_PROCESS:
+ case content::PROCESS_TYPE_UTILITY:
return "Utility";
- case PROFILE_IMPORT_PROCESS:
+ case content::PROCESS_TYPE_PROFILE_IMPORT:
return "Profile Import helper";
- case ZYGOTE_PROCESS:
+ case content::PROCESS_TYPE_ZYGOTE:
return "Zygote";
- case SANDBOX_HELPER_PROCESS:
+ case content::PROCESS_TYPE_SANDBOX_HELPER:
return "Sandbox helper";
- case NACL_LOADER_PROCESS:
+ case content::PROCESS_TYPE_NACL_LOADER:
return "Native Client module";
- case NACL_BROKER_PROCESS:
+ case content::PROCESS_TYPE_NACL_BROKER:
return "Native Client broker";
- case GPU_PROCESS:
+ case content::PROCESS_TYPE_GPU:
return "GPU";
- case PPAPI_PLUGIN_PROCESS:
+ case content::PROCESS_TYPE_PPAPI_PLUGIN:
return "Pepper Plugin";
- case PPAPI_BROKER_PROCESS:
+ case content::PROCESS_TYPE_PPAPI_BROKER:
return "Pepper Plugin Broker";
- case UNKNOWN_PROCESS:
+ case content::PROCESS_TYPE_UNKNOWN:
default:
DCHECK(false) << "Unknown child process type!";
return "Unknown";
« no previous file with comments | « content/common/child_process_info.h ('k') | content/common/debug_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698