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

Unified Diff: content/public/common/process_type.h

Issue 8757014: Move GetProcessTypeNameInEnglish beside the ProcessType enum where it belongs. This also helps re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/content_common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/process_type.h
===================================================================
--- content/public/common/process_type.h (revision 112374)
+++ content/public/common/process_type.h (working copy)
@@ -6,6 +6,8 @@
#define CONTENT_PUBLIC_COMMON_PROCESS_TYPE_H_
#pragma once
+#include <string>
+
namespace content {
// Defines the different process types.
@@ -30,6 +32,10 @@
PROCESS_TYPE_MAX
};
+// Returns an English name of the process type, should only be used for non
+// user-visible strings, or debugging pages like about:memory.
+std::string GetProcessTypeNameInEnglish(ProcessType type);
+
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_PROCESS_TYPE_H_
« no previous file with comments | « content/content_common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698