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

Unified Diff: chrome/browser/task_management/task_manager_interface.h

Issue 1912773002: Remove the old task manager view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 7 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
Index: chrome/browser/task_management/task_manager_interface.h
diff --git a/chrome/browser/task_management/task_manager_interface.h b/chrome/browser/task_management/task_manager_interface.h
index b35145c5a17bcb8c74ec994325e81befb69760b9..17f6119667ab1698adeebd06bfccce84953e7c0b 100644
--- a/chrome/browser/task_management/task_manager_interface.h
+++ b/chrome/browser/task_management/task_manager_interface.h
@@ -22,6 +22,8 @@
#include "third_party/WebKit/public/web/WebCache.h"
#include "ui/gfx/image/image_skia.h"
+class PrefRegistrySimple;
+
namespace net {
class URLRequest;
} // namespace net
@@ -33,6 +35,17 @@ namespace task_management {
// enabled calculations of the usage of the various resources.
class TaskManagerInterface {
public:
+ // Registers the task manager related prefs.
+ static void RegisterPrefs(PrefRegistrySimple* registry);
+
+ // Returns true if the user is allowed to end processes.
+ static bool IsEndProcessEnabled();
+
+#if defined(OS_MACOSX)
+ // On Mac OS, the old task manager is still being used on cocoa.
+ static bool IsNewTaskManagerEnabled();
+#endif // defined(OS_MACOSX)
+
// Gets the existing instance of the task manager if any, otherwise it will
// create it first. Must be called on the UI thread.
static TaskManagerInterface* GetTaskManager();
« no previous file with comments | « chrome/browser/task_management/task_manager_browsertest.cc ('k') | chrome/browser/task_management/task_manager_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698