| OLD | NEW |
| 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 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 case PROCESS_TYPE_ZYGOTE: | 22 case PROCESS_TYPE_ZYGOTE: |
| 23 return "Zygote"; | 23 return "Zygote"; |
| 24 case PROCESS_TYPE_SANDBOX_HELPER: | 24 case PROCESS_TYPE_SANDBOX_HELPER: |
| 25 return "Sandbox helper"; | 25 return "Sandbox helper"; |
| 26 case PROCESS_TYPE_GPU: | 26 case PROCESS_TYPE_GPU: |
| 27 return "GPU"; | 27 return "GPU"; |
| 28 case PROCESS_TYPE_PPAPI_PLUGIN: | 28 case PROCESS_TYPE_PPAPI_PLUGIN: |
| 29 return "Pepper Plugin"; | 29 return "Pepper Plugin"; |
| 30 case PROCESS_TYPE_PPAPI_BROKER: | 30 case PROCESS_TYPE_PPAPI_BROKER: |
| 31 return "Pepper Plugin Broker"; | 31 return "Pepper Plugin Broker"; |
| 32 #if defined(OS_ANDROID) |
| 33 case PROCESS_TYPE_DOWNLOAD: |
| 34 return "Download"; |
| 35 #endif // defined(OS_ANDROID) |
| 32 case PROCESS_TYPE_UNKNOWN: | 36 case PROCESS_TYPE_UNKNOWN: |
| 33 DCHECK(false) << "Unknown child process type!"; | 37 DCHECK(false) << "Unknown child process type!"; |
| 34 return "Unknown"; | 38 return "Unknown"; |
| 35 } | 39 } |
| 36 | 40 |
| 37 return content::GetContentClient()->GetProcessTypeNameInEnglish(type); | 41 return content::GetContentClient()->GetProcessTypeNameInEnglish(type); |
| 38 } | 42 } |
| 39 | 43 |
| 40 } // namespace content | 44 } // namespace content |
| OLD | NEW |