This source file includes following definitions.
- GetProcessTypeNameInEnglish
#include "content/public/common/process_type.h"
#include "base/logging.h"
#include "content/public/common/content_client.h"
namespace content {
std::string GetProcessTypeNameInEnglish(int type) {
switch (type) {
case PROCESS_TYPE_BROWSER:
return "Browser";
case PROCESS_TYPE_RENDERER:
return "Tab";
case PROCESS_TYPE_PLUGIN:
return "Plug-in";
case PROCESS_TYPE_WORKER:
return "Web Worker";
case PROCESS_TYPE_UTILITY:
return "Utility";
case PROCESS_TYPE_ZYGOTE:
return "Zygote";
case PROCESS_TYPE_SANDBOX_HELPER:
return "Sandbox helper";
case PROCESS_TYPE_GPU:
return "GPU";
case PROCESS_TYPE_PPAPI_PLUGIN:
return "Pepper Plugin";
case PROCESS_TYPE_PPAPI_BROKER:
return "Pepper Plugin Broker";
case PROCESS_TYPE_UNKNOWN:
DCHECK(false) << "Unknown child process type!";
return "Unknown";
}
return content::GetContentClient()->GetProcessTypeNameInEnglish(type);
}
}