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

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

Issue 1622743005: Introduce background Download process to android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 4 years, 11 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
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 {
(...skipping 11 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698