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

Unified Diff: tools/win/ChromeDebug/ChromeDebug/ProcessCategory.cs

Issue 23480085: Initial submit of ChromeDebug extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add README.txt Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/win/ChromeDebug/ChromeDebug/PkgCmdID.cs ('k') | tools/win/ChromeDebug/ChromeDebug/ProcessDetail.cs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/win/ChromeDebug/ChromeDebug/ProcessCategory.cs
diff --git a/tools/win/ChromeDebug/ChromeDebug/ProcessCategory.cs b/tools/win/ChromeDebug/ChromeDebug/ProcessCategory.cs
new file mode 100644
index 0000000000000000000000000000000000000000..69607bf9130154665e8b792873a071fec83124b0
--- /dev/null
+++ b/tools/win/ChromeDebug/ChromeDebug/ProcessCategory.cs
@@ -0,0 +1,37 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ChromeDebug {
+ internal enum ProcessCategory {
+ Browser,
+ Renderer,
+ Gpu,
+ Plugin,
+ DelegateExecute,
+ MetroViewer,
+ Service,
+ Other
+ }
+
+ // Defines an extension method for the ProcessCategory enum which converts the enum value into
+ // the group title.
+ internal static class ProcessCategoryExtensions {
+ public static string ToGroupTitle(this ProcessCategory category) {
+ switch (category) {
+ case ProcessCategory.DelegateExecute:
+ return "Delegate Execute";
+ case ProcessCategory.MetroViewer:
+ return "Metro Viewer";
+ default:
+ return category.ToString();
+ }
+ }
+ }
+}
« no previous file with comments | « tools/win/ChromeDebug/ChromeDebug/PkgCmdID.cs ('k') | tools/win/ChromeDebug/ChromeDebug/ProcessDetail.cs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698